< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/StackTrace.java
Print this page
rev 54717 : imported patch 8223306
@@ -70,11 +70,12 @@
if (concurrentLocks) {
concLocksPrinter = new ConcurrentLocksPrinter();
}
Threads threads = VM.getVM().getThreads();
int i = 1;
- for (JavaThread cur = threads.first(); cur != null; cur = cur.next(), i++) {
+ 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 >