< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/StackTrace.java
Print this page
rev 54717 : imported patch 8223306
*** 70,80 ****
if (concurrentLocks) {
concLocksPrinter = new ConcurrentLocksPrinter();
}
Threads threads = VM.getVM().getThreads();
int i = 1;
! for (JavaThread cur = threads.first(); cur != null; cur = cur.next(), i++) {
if (cur.isJavaThread()) {
cur.printThreadInfoOn(tty);
try {
int count = 0;
--- 70,81 ----
if (concurrentLocks) {
concLocksPrinter = new ConcurrentLocksPrinter();
}
Threads threads = VM.getVM().getThreads();
int i = 1;
! for (int k = 0; k < threads.getNumberOfThreads(); k++) {
! JavaThread cur = threads.getJavaThreadAt(k);
if (cur.isJavaThread()) {
cur.printThreadInfoOn(tty);
try {
int count = 0;
< prev index next >