--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/StackTrace.java 2017-11-09 22:14:06.407171536 +0900 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/StackTrace.java 2017-11-09 22:14:06.194170375 +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:");