diff src/share/vm/runtime/simpleThresholdPolicy.cpp @ 17912:653e11c86c5a

8041959: Skip replay parsing errors with ReplayIgnoreInitErrors Summary: Allow replay compilation with replay file parsing error. Reviewed-by: twisti, iveresov
author kvn
date Tue, 29 Apr 2014 10:29:56 -0700
parents 7150b16fda52
children 52b4284cb496 41dcdd636080
line wrap: on
line diff
--- a/src/share/vm/runtime/simpleThresholdPolicy.cpp	Thu May 01 17:57:29 2014 -0700
+++ b/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());