One more: Method invalidation for strange example code

Stefan Marr java at stefan-marr.de
Mon Jan 27 14:21:48 PST 2014


Hi Andreas:


On 27 Jan 2014, at 21:17, Andreas Woess <andreas.woess at jku.at> wrote:

> Hi Stefan,
> 
> I was able to reproduce the problem. Apparently, the compiled code is
> garbage collected in response to the System.gc() in your benchmark
> harness. The obvious workaround is not to call System.gc() until this is
> fixed.

Ouch, well, that’s something I wouldn’t have guessed at all.
I also applied the change to use FrameUtil.getObjectSafe, and now all but three of the benchmarks stabilize completely.
The remaining ones are now DeltaBlue, Fannkuch, and Queens.
Will try to see whether that narrows it down a bit further.

Will also try to reenable the specialization for primitive types for frame accesses.

Thanks a lot
Stefan


-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list