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

[JVMCI] remove Unsafe.getJavaMirror and Unsafe.getKlassPointer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b126
    • generic
    • generic

      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.

            dnsimon Douglas Simon
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: