[JVMCI] remove Unsafe.getJavaMirror and Unsafe.getKlassPointer

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: