Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8087218

Constant fold loads from final instance fields in VM anonymous classes

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b73

      Backports

        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.
         

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                vlivanov Vladimir Ivanov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: