8227632: Incorrect PrintCompilation message: made not compilable on levels 0 1 2 3 4
authorbulasevich
Tue, 16 Jul 2019 18:05:42 +0300
changeset 55686 b8152c273f76
parent 55685 56b96d234f26
child 55687 065142ace8e9
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
src/hotspot/share/oops/method.cpp
--- 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();