diff -r f84b15cd9e1a -r e18584aa83e2 hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp --- 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());