< prev index next >

src/jdk.unsupported/share/classes/sun/misc/Unsafe.java

Print this page

        

@@ -309,34 +309,10 @@
     @ForceInline
     public Object getUncompressedObject(long address) {
         return theInternalUnsafe.getUncompressedObject(address);
     }
 
-    /**
-     * Fetches the {@link java.lang.Class} Java mirror for the given native
-     * metaspace {@code Klass} pointer.
-     *
-     * @param metaspaceKlass a native metaspace {@code Klass} pointer
-     * @return the {@link java.lang.Class} Java mirror
-     */
-    @ForceInline
-    public Class<?> getJavaMirror(long metaspaceKlass) {
-        return theInternalUnsafe.getJavaMirror(metaspaceKlass);
-    }
-
-    /**
-     * Fetches a native metaspace {@code Klass} pointer for the given Java
-     * object.
-     *
-     * @param o Java heap object for which to fetch the class pointer
-     * @return a native metaspace {@code Klass} pointer
-     */
-    @ForceInline
-    public long getKlassPointer(Object o) {
-        return theInternalUnsafe.getKlassPointer(o);
-    }
-
     // These work on values in the C heap.
 
     /**
      * Fetches a value from a given memory address.  If the address is zero, or
      * does not point into a block obtained from {@link #allocateMemory}, the
< prev index next >