From de17002b7c423d938b35521516146cc1b3585f54 Mon Sep 17 00:00:00 2001 From: Doug Simon Date: Mon, 6 Jun 2016 16:18:01 -0700 Subject: [PATCH] 8156587: [JVMCI] remove Unsafe.getJavaMirror and Unsafe.getKlassPointer Reviewed-by: kvn --- .../classes/jdk/internal/misc/Unsafe.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/jdk/src/java.base/share/classes/jdk/internal/misc/Unsafe.java b/jdk/src/java.base/share/classes/jdk/internal/misc/Unsafe.java index f4e11a3378a..77bdf2db106 100644 --- a/jdk/src/java.base/share/classes/jdk/internal/misc/Unsafe.java +++ b/jdk/src/java.base/share/classes/jdk/internal/misc/Unsafe.java @@ -318,24 +318,6 @@ public final class Unsafe { */ public native Object getUncompressedObject(long 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 - */ - public native Class getJavaMirror(long 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 - */ - public native long getKlassPointer(Object o); - // These work on values in the C heap. /**