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

@ -2891,9 +2891,11 @@ void AdapterHandlerLibrary::create_native_wrapper(const methodHandle& method) {
// Install the generated code.
if (nm != NULL) {
const char *msg = method->is_static() ? "(static)" : "";
CompileTask::print_ul(nm, msg);
if (PrintCompilation) {
ttyLocker ttyl;
CompileTask::print(tty, nm, method->is_static() ? "(static)" : "");
CompileTask::print(tty, nm, msg);
}
nm->post_compiled_method_load_event();
}