[9] RFR (XS): 8087218: Constant fold loads from final instance fields in VM anonymous classes

Rickard Bäckman rickard.backman at oracle.com
Mon Jun 15 13:21:26 UTC 2015

Looks good.


On 06/15, Vladimir Ivanov wrote:
> http://cr.openjdk.java.net/~vlivanov/8087218/webrev.00
> https://bugs.openjdk.java.net/browse/JDK-8087218
> Right now, VM doesn't constant fold loads final instance fields
> unless an experimental flag -XX:+TrustFinalNonStaticFields is turned
> on.
> The only exception is classes in java.lang.invoke/sun.invoke packages.
> It can be extended to VM anonymous classes because there is no
> hacking of finals going on with them:
>   (1) they are part of private API (sun.misc.Unsafe);
>   (2) they can't be serialized.
> Testing: manual (verified in generated code that constant folding happens)
> Thanks!
> Best regards,
> Vladimir Ivanov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150615/8d0b9c05/signature.asc>

More information about the hotspot-compiler-dev mailing list