diff src/share/vm/jvmci/jvmciCodeInstaller.cpp @ 22454:76af33d4d504

Make jvmci redefinition safe
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Fri, 21 Aug 2015 11:57:29 -0700
parents 32434ca987d7
children 822922922f3c
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciCodeInstaller.cpp	Fri Aug 21 16:35:29 2015 +0200
+++ b/src/share/vm/jvmci/jvmciCodeInstaller.cpp	Fri Aug 21 11:57:29 2015 -0700
@@ -66,7 +66,7 @@
 
 Method* getMethodFromHotSpotMethod(oop hotspot_method) {
   assert(hotspot_method != NULL && hotspot_method->is_a(HotSpotResolvedJavaMethodImpl::klass()), "sanity");
-  return asMethod(HotSpotResolvedJavaMethodImpl::metaspaceMethod(hotspot_method));
+  return CompilerToVM::asMethod(hotspot_method);
 }
 
 VMReg getVMRegFromLocation(oop location, int total_frame_size) {