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

Use correct lookup mode for MethodHandleStatics.UNSAFE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • 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

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

              Created:
              Updated:
              Resolved: