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

[JVMCI] remove Unsafe.getJavaMirror and Unsafe.getKlassPointer

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b126
    • CPU:
      generic
    • OS:
      generic

      Description

      JDK-8022853 added 3 methods to the Unsafe API in order to provide supported entry points for JVMCI to retrieve some VM internal data. A later implementation change of JVMCI which was required to handle class redefinition properly made 2 of these methods unnecessary:

          public native Class<?> getJavaMirror(long metaspaceKlass);
          public native long getKlassPointer(Object o);

      Since these methods only exist in JDK 9 we can, and should, just remove them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dnsimon Douglas Simon
                Reporter:
                twisti Christian Thalinger
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: