--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/StackTrace.java 2017-09-27 00:29:15.601659239 +0900 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/StackTrace.java 2017-09-27 00:29:15.403658662 +0900 @@ -76,6 +76,8 @@ if (cur.isJavaThread()) { cur.printThreadInfoOn(tty); try { + int count = 0; + for (JavaVFrame vf = cur.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { Method method = vf.getMethod(); tty.print(" - " + method.externalNameAndSignature() + @@ -109,6 +111,7 @@ } tty.println(")"); + vf.printLockInfo(tty, count++); } } catch (Exception e) { tty.println("Error occurred during stack walking:");