JDK-8087218 : Constant fold loads from final instance fields in VM anonymous classes
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-06-11
  • Updated: 2015-09-10
  • Resolved: 2015-06-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b73Fixed
Related Reports
Relates :  
Description
Constant fold loads from final instance fields in VM anonymous classes.
Right now, the only exception are classes java.lang.invoke package.
It can be extended to VM anonymous classes. They (1) are part of private API (sun.misc.Unsafe); and (2) can't be serialized, so there is no hacking of finals going on with them.