OpenJDK / amber / amber
changeset 57310:b8152c273f76
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
author | bulasevich |
---|---|
date | Tue, 16 Jul 2019 18:05:42 +0300 |
parents | 56b96d234f26 |
children | 065142ace8e9 |
files | src/hotspot/share/oops/method.cpp |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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();