News for hackers. Stuff that matters.
Re:My favorite bug: segfaults in Java by Doradus on Sunday March 29, 2015 @09:32AM (#9284748)
Me too. I would fully expect the JIT compiler to remove this call unless it's more complicated than it sounds. I don't think this is a real fix.

I work on IBM's JIT compiler. We had to do something similar to fix this problem in DirectByteBuffer a few years ago, by adding a call to a magic method called keepAlive. To make this work, we had to teach the JIT to handle this method specially, or else it would have ripped it out, and the fix would have had no effect.

[These are my personal opinions, not those of my employer.]

There are no comments on this comment yet.