8157825: Remove JDK 9 specific methods from sun.misc.Unsafe
authorchegar
Wed, 25 May 2016 20:00:20 +0100
changeset 38562 51a7629b68cf
parent 38561 bf65323537b2
child 38563 3ab5f00bd5a3
8157825: Remove JDK 9 specific methods from sun.misc.Unsafe Reviewed-by: alanb, mchung, shade
jdk/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java
--- a/jdk/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java	Wed May 25 17:07:13 2016 +0300
+++ b/jdk/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java	Wed May 25 20:00:20 2016 +0100
@@ -296,45 +296,6 @@
         theInternalUnsafe.putDouble(o, offset, x);
     }
 
-
-    // These read VM internal data.
-
-    /**
-     * Fetches an uncompressed reference value from a given native variable
-     * ignoring the VM's compressed references mode.
-     *
-     * @param address a memory address locating the variable
-     * @return the value fetched from the indicated native variable
-     */
-    @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.
 
     /**