8227632: Incorrect PrintCompilation message: made not compilable on levels 0 1 2 3 4

Fixing the message to print actual comp_level

Reviewed-by: dlong, kvn
This commit is contained in:
Boris Ulasevich 2019-07-16 18:05:42 +03:00
parent b0adbe8fcf
commit 587ce2f4c1

View File

@ -842,10 +842,7 @@ void Method::print_made_not_compilable(int comp_level, bool is_osr, bool report,
if (comp_level == CompLevel_all) {
tty->print("all levels ");
} else {
tty->print("levels ");
for (int i = (int)CompLevel_none; i <= comp_level; i++) {
tty->print("%d ", i);
}
tty->print("level %d ", comp_level);
}
this->print_short_name(tty);
int size = this->code_size();