< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/StackTrace.java

Print this page

        

@@ -74,10 +74,12 @@
             int i = 1;
             for (JavaThread cur = threads.first(); cur != null; cur = cur.next(), i++) {
                 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() +
                             " @bci=" + vf.getBCI());
 

@@ -107,10 +109,11 @@
                             if (vf.mayBeImpreciseDbg()) {
                                 tty.print("; information may be imprecise");
                             }
 
                             tty.println(")");
+                            vf.printLockInfo(tty, count++);
                         }
                     } catch (Exception e) {
                         tty.println("Error occurred during stack walking:");
                         e.printStackTrace();
                     }
< prev index next >