On constant folding of final field loads

John Rose john.r.rose at oracle.com
Tue Jul 21 19:04:42 UTC 2015


On Jul 21, 2015, at 11:48 AM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
> 
> Fixing the problem for static final fields doesn't look like a hard problem. JIT can inspect field holder class state and skip the optimization if the class hasn't been fully initialized yet.

And a slushy bit (for use by reflection, etc.) can handle the corresponding non-static case.  — John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150721/7c6f003c/attachment.html>


More information about the hotspot-compiler-dev mailing list