diff -r f48e481abef0 -r 653e11c86c5a src/share/vm/runtime/simpleThresholdPolicy.cpp --- 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());