8227632: Incorrect PrintCompilation message: made not compilable on levels 0 1 2 3 4
Summary: Fixing the message to print actual comp_level
Reviewed-by: dlong, kvn
--- a/src/hotspot/share/oops/method.cpp Tue Jul 16 13:57:13 2019 +0200
+++ b/src/hotspot/share/oops/method.cpp Tue Jul 16 18:05:42 2019 +0300
@@ -842,10 +842,7 @@
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();