@@ -2889,13 +2889,15 @@ } // Unlock AdapterHandlerLibrary_lock // 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(); } }