1.1 --- a/src/share/vm/code/codeBlob.cpp Thu Sep 20 16:49:17 2012 +0200 1.2 +++ b/src/share/vm/code/codeBlob.cpp Mon Sep 24 10:30:14 2012 -0700 1.3 @@ -162,8 +162,10 @@ 1.4 assert(strlen(name1) + strlen(name2) < sizeof(stub_id), ""); 1.5 jio_snprintf(stub_id, sizeof(stub_id), "%s%s", name1, name2); 1.6 if (PrintStubCode) { 1.7 + ttyLocker ttyl; 1.8 tty->print_cr("Decoding %s " INTPTR_FORMAT, stub_id, (intptr_t) stub); 1.9 Disassembler::decode(stub->code_begin(), stub->code_end()); 1.10 + tty->cr(); 1.11 } 1.12 Forte::register_stub(stub_id, stub->code_begin(), stub->code_end()); 1.13 1.14 @@ -548,6 +550,7 @@ 1.15 } 1.16 1.17 void RuntimeStub::print_on(outputStream* st) const { 1.18 + ttyLocker ttyl; 1.19 CodeBlob::print_on(st); 1.20 st->print("Runtime Stub (" INTPTR_FORMAT "): ", this); 1.21 st->print_cr(name()); 1.22 @@ -563,6 +566,7 @@ 1.23 } 1.24 1.25 void SingletonBlob::print_on(outputStream* st) const { 1.26 + ttyLocker ttyl; 1.27 CodeBlob::print_on(st); 1.28 st->print_cr(name()); 1.29 Disassembler::decode((CodeBlob*)this, st);