hotspot/src/share/vm/oops/method.cpp
changeset 35543 0961315f4016
parent 34666 1c7168ea0034
child 35606 d873b64009cc
--- a/hotspot/src/share/vm/oops/method.cpp	Fri Dec 18 20:23:26 2015 +0300
+++ b/hotspot/src/share/vm/oops/method.cpp	Fri Dec 18 20:23:27 2015 +0300
@@ -1200,8 +1200,10 @@
   m->set_vtable_index(Method::nonvirtual_vtable_index);
   m->link_method(m, CHECK_(empty));
 
-  if (TraceMethodHandles && (Verbose || WizardMode))
+  if (TraceMethodHandles && (Verbose || WizardMode)) {
+    ttyLocker ttyl;
     m->print_on(tty);
+  }
 
   return m;
 }