hotspot/src/share/vm/jvmci/jvmciCompilerToVM.hpp
changeset 42650 1f304d0c888b
parent 41283 2615c024f3eb
child 43939 39f5b59549de
child 46271 979ebd346ecf
--- a/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.hpp	Sun Dec 11 12:05:57 2016 -0800
+++ b/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.hpp	Sun Dec 11 19:07:04 2016 -0800
@@ -125,6 +125,10 @@
     return java_lang_Class::as_Klass(HotSpotResolvedObjectTypeImpl::javaClass(jvmci_type));
   }
 
+  static inline Klass* asKlass(jlong metaspaceKlass) {
+    return (Klass*) (address) metaspaceKlass;
+  }
+
   static inline MethodData* asMethodData(jlong metaspaceMethodData) {
     return (MethodData*) (address) metaspaceMethodData;
   }