Use correct lookup mode for MethodHandleStatics.UNSAFE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      In JDK-8187826 we changed to use a NamedFunction for the UNSAFE field, but it appears the invocation mode and the exception type is wrong. This mismatch appears to be ignored by HotSpot, but a user implementing an experimental JVM ran into some issues.

      Use REF_getStatic and expect NoSuchFieldException when setting up NF_UNSAFE

            Assignee:
            Claes Redestad
            Reporter:
            Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: