1.1 --- a/src/share/vm/runtime/deoptimization.cpp Tue Oct 09 10:09:34 2012 -0700 1.2 +++ b/src/share/vm/runtime/deoptimization.cpp Fri Oct 12 09:22:52 2012 -0700 1.3 @@ -233,6 +233,7 @@ 1.4 return_value = Handle(thread, result); 1.5 assert(Universe::heap()->is_in_or_null(result), "must be heap pointer"); 1.6 if (TraceDeoptimization) { 1.7 + ttyLocker ttyl; 1.8 tty->print_cr("SAVED OOP RESULT " INTPTR_FORMAT " in thread " INTPTR_FORMAT, result, thread); 1.9 } 1.10 } 1.11 @@ -493,6 +494,7 @@ 1.12 1.13 if (array->frames() > 1) { 1.14 if (VerifyStack && TraceDeoptimization) { 1.15 + ttyLocker ttyl; 1.16 tty->print_cr("Deoptimizing method containing inlining"); 1.17 } 1.18 } 1.19 @@ -573,6 +575,7 @@ 1.20 1.21 #ifndef PRODUCT 1.22 if (TraceDeoptimization) { 1.23 + ttyLocker ttyl; 1.24 tty->print_cr("DEOPT UNPACKING thread " INTPTR_FORMAT " vframeArray " INTPTR_FORMAT " mode %d", thread, array, exec_mode); 1.25 } 1.26 #endif 1.27 @@ -1322,9 +1325,9 @@ 1.28 if (TraceDeoptimization) { // make noise on the tty 1.29 tty->print("Uncommon trap occurred in"); 1.30 nm->method()->print_short_name(tty); 1.31 - tty->print(" (@" INTPTR_FORMAT ") thread=%d reason=%s action=%s unloaded_class_index=%d", 1.32 + tty->print(" (@" INTPTR_FORMAT ") thread=" UINTX_FORMAT " reason=%s action=%s unloaded_class_index=%d", 1.33 fr.pc(), 1.34 - (int) os::current_thread_id(), 1.35 + os::current_thread_id(), 1.36 trap_reason_name(reason), 1.37 trap_action_name(action), 1.38 unloaded_class_index);