--- a/hotspot/src/share/vm/compiler/compileBroker.cpp Thu Mar 17 16:10:58 2016 -1000
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp Thu Mar 17 09:50:00 2016 +0300
@@ -1170,7 +1170,8 @@
CompilationPolicy::policy()->delay_compilation(method());
return NULL;
}
- compile_method_base(method, osr_bci, comp_level, hot_method, hot_count, comment, !directive->BackgroundCompilationOption, THREAD);
+ bool is_blocking = !directive->BackgroundCompilationOption || CompileTheWorld || ReplayCompiles;
+ compile_method_base(method, osr_bci, comp_level, hot_method, hot_count, comment, is_blocking, THREAD);
}
// return requested nmethod