8172285: UL support for PrintCompilation

Reviewed-by: kvn
This commit is contained in:
Yasumasa Suenaga 2017-02-14 20:00:28 -08:00
parent 5a06c21978
commit b1171ce431
8 changed files with 85 additions and 28 deletions

View file

@ -1134,8 +1134,11 @@ void nmethod::log_state_change() const {
xtty->end_elem();
}
}
const char *state_msg = _state == zombie ? "made zombie" : "made not entrant";
CompileTask::print_ul(this, state_msg);
if (PrintCompilation && _state != unloaded) {
print_on(tty, _state == zombie ? "made zombie" : "made not entrant");
print_on(tty, state_msg);
}
}