8173037: V [jvm.dll+0x2343fc] GraphBuilder::args_list_for_profiling+0x8c

Disabled WB Compilaton at unsupported levels.

Reviewed-by: kvn
This commit is contained in:
Jamsheed Mohammed C M 2017-01-22 22:18:49 -08:00
parent a81872e33e
commit 165af4bdae
3 changed files with 5 additions and 3 deletions

View file

@ -68,7 +68,6 @@ void set_client_compilation_mode() {
CompLevel_initial_compile = CompLevel_simple; CompLevel_initial_compile = CompLevel_simple;
FLAG_SET_ERGO(bool, TieredCompilation, false); FLAG_SET_ERGO(bool, TieredCompilation, false);
FLAG_SET_ERGO(bool, ProfileInterpreter, false); FLAG_SET_ERGO(bool, ProfileInterpreter, false);
FLAG_SET_ERGO(bool, NeverActAsServerClassMachine, true);
#if INCLUDE_JVMCI #if INCLUDE_JVMCI
FLAG_SET_ERGO(bool, EnableJVMCI, false); FLAG_SET_ERGO(bool, EnableJVMCI, false);
FLAG_SET_ERGO(bool, UseJVMCICompiler, false); FLAG_SET_ERGO(bool, UseJVMCICompiler, false);
@ -76,6 +75,9 @@ void set_client_compilation_mode() {
#if INCLUDE_AOT #if INCLUDE_AOT
FLAG_SET_ERGO(bool, UseAOT, false); FLAG_SET_ERGO(bool, UseAOT, false);
#endif #endif
if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) {
FLAG_SET_ERGO(bool, NeverActAsServerClassMachine, true);
}
if (FLAG_IS_DEFAULT(InitialCodeCacheSize)) { if (FLAG_IS_DEFAULT(InitialCodeCacheSize)) {
FLAG_SET_ERGO(uintx, InitialCodeCacheSize, 160*K); FLAG_SET_ERGO(uintx, InitialCodeCacheSize, 160*K);
} }

View file

@ -765,7 +765,7 @@ WB_END
bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* THREAD) { bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* THREAD) {
// Screen for unavailable/bad comp level or null method // Screen for unavailable/bad comp level or null method
if (method == NULL || comp_level > TieredStopAtLevel || if (method == NULL || comp_level > MIN2((CompLevel) TieredStopAtLevel, CompLevel_highest_tier) ||
CompileBroker::compiler(comp_level) == NULL) { CompileBroker::compiler(comp_level) == NULL) {
return false; return false;
} }

View file

@ -1829,7 +1829,7 @@ bool Arguments::compilation_mode_selected() {
void Arguments::select_compilation_mode_ergonomically() { void Arguments::select_compilation_mode_ergonomically() {
#if defined(_WINDOWS) && !defined(_LP64) #if defined(_WINDOWS) && !defined(_LP64)
if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) { if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) {
NeverActAsServerClassMachine = true; FLAG_SET_ERGO(bool, NeverActAsServerClassMachine, true);
} }
#endif #endif
if (NeverActAsServerClassMachine) { if (NeverActAsServerClassMachine) {