--- 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;
}