--- a/src/hotspot/share/oops/method.cpp Tue Jun 04 11:55:51 2019 -0700
+++ b/src/hotspot/share/oops/method.cpp Tue Jun 04 12:44:53 2019 -0700
@@ -835,6 +835,7 @@
void Method::print_made_not_compilable(int comp_level, bool is_osr, bool report, const char* reason) {
+ assert(reason != NULL, "must provide a reason");
if (PrintCompilation && report) {
ttyLocker ttyl;
tty->print("made not %scompilable on ", is_osr ? "OSR " : "");
@@ -895,7 +896,7 @@
}
// call this when compiler finds that this method is not compilable
-void Method::set_not_compilable(int comp_level, bool report, const char* reason) {
+void Method::set_not_compilable(const char* reason, int comp_level, bool report) {
if (is_always_compilable()) {
// Don't mark a method which should be always compilable
return;
@@ -926,7 +927,7 @@
return false;
}
-void Method::set_not_osr_compilable(int comp_level, bool report, const char* reason) {
+void Method::set_not_osr_compilable(const char* reason, int comp_level, bool report) {
print_made_not_compilable(comp_level, /*is_osr*/ true, report, reason);
if (comp_level == CompLevel_all) {
set_not_c1_osr_compilable();