src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
changeset 48400 8604408bc26e
parent 47796 47629b00daa9
child 48480 614068b0ddd7
child 48605 00d8c8d696e9
--- a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp	Wed Dec 13 23:06:59 2017 +0100
+++ b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp	Wed Dec 13 20:35:09 2017 -0800
@@ -761,6 +761,10 @@
 
 C2V_VMENTRY(jboolean, isCompilable,(JNIEnv *, jobject, jobject jvmci_method))
   methodHandle method = CompilerToVM::asMethod(jvmci_method);
+  // Skip redefined methods
+  if (method->is_old()) {
+    return false;
+  }
   return !method->is_not_compilable(CompLevel_full_optimization);
 C2V_END