Field access optimisations inside loops (question).
Ulf.Zibis at gmx.de
Fri Jan 8 08:56:58 PST 2010
Am 08.01.2010 16:11, Dawid Weiss schrieb:
> Thanks for the discussion, Ulf, I appreciate your time. I still think
> the compiler COULD optimize here -- I attach a simple JUnit test case
> that shows the self-contained example (clearly there is no way
> anything can be modified with the list of buffer fields and the first
> loop is still much, much slower).
In my last post, I have forgotten, that fields can also be modified from
reflection access, if I remember right, even on final fields, so I'm
afraid, HotSpot could optimize here.
More information about the hotspot-compiler-dev