hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp
changeset 24324 e18584aa83e2
parent 24321 621f7e09fc0a
child 27447 5cd7caca045d
--- a/hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp	Tue Apr 29 07:14:46 2014 +0000
+++ b/hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp	Tue Apr 29 10:29:56 2014 -0700
@@ -192,6 +192,10 @@
       thread->is_interp_only_mode()) {
     return NULL;
   }
+  if (CompileTheWorld || ReplayCompiles) {
+    // Don't trigger other compiles in testing mode
+    return NULL;
+  }
   nmethod *osr_nm = NULL;
 
   handle_counter_overflow(method());