--- a/src/hotspot/share/compiler/compileBroker.cpp Tue Jun 04 11:55:51 2019 -0700
+++ b/src/hotspot/share/compiler/compileBroker.cpp Tue Jun 04 12:44:53 2019 -0700
@@ -1242,7 +1242,7 @@
if (HAS_PENDING_EXCEPTION) {
// In case of an exception looking up the method, we just forget
// about it. The interpreter will kick-in and throw the exception.
- method->set_not_compilable(); // implies is_not_osr_compilable()
+ method->set_not_compilable("NativeLookup::lookup failed"); // implies is_not_osr_compilable()
CLEAR_PENDING_EXCEPTION;
return NULL;
}
@@ -1370,7 +1370,7 @@
AbstractCompiler *comp = compiler(comp_level);
if (is_native &&
(!CICompileNatives || comp == NULL || !comp->supports_native())) {
- method->set_not_compilable_quietly(comp_level);
+ method->set_not_compilable_quietly("native methods not supported", comp_level);
return true;
}
@@ -1378,7 +1378,7 @@
// Some compilers may not support on stack replacement.
if (is_osr &&
(!CICompileOSR || comp == NULL || !comp->supports_osr())) {
- method->set_not_osr_compilable(comp_level);
+ method->set_not_osr_compilable("OSR not supported", comp_level);
return true;
}
@@ -1395,7 +1395,7 @@
method->print_short_name(tty);
tty->cr();
}
- method->set_not_compilable(comp_level, !quietly, "excluded by CompileCommand");
+ method->set_not_compilable("excluded by CompileCommand", comp_level, !quietly);
}
return false;
@@ -1428,7 +1428,7 @@
}
// Method was not in the appropriate compilation range.
- method->set_not_compilable_quietly();
+ method->set_not_compilable_quietly("Not in requested compile id range");
return 0;
#else
// CICountOSR is a develop flag and set to 'false' by default. In a product built,
@@ -2195,15 +2195,15 @@
switch (compilable) {
case ciEnv::MethodCompilable_never:
if (is_osr)
- method->set_not_osr_compilable_quietly();
+ method->set_not_osr_compilable_quietly("MethodCompilable_never");
else
- method->set_not_compilable_quietly();
+ method->set_not_compilable_quietly("MethodCompilable_never");
break;
case ciEnv::MethodCompilable_not_at_tier:
if (is_osr)
- method->set_not_osr_compilable_quietly(task_level);
+ method->set_not_osr_compilable_quietly("MethodCompilable_not_at_tier", task_level);
else
- method->set_not_compilable_quietly(task_level);
+ method->set_not_compilable_quietly("MethodCompilable_not_at_tier", task_level);
break;
}