< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/soql/JSJavaVM.java
Print this page
rev 54717 : imported patch 8223306
@@ -189,15 +189,11 @@
private synchronized JSList getThreads() {
if (threadsCache == null) {
List threads = new ArrayList(0);
threadsCache = factory.newJSList(threads);
- JavaThread jthread = vm.getThreads().first();
- while (jthread != null) {
- threads.add(jthread);
- jthread = jthread.next();
- }
+ VM.getVM().getThreads().doJavaThreads((thread) -> threads.add(thread));
}
return threadsCache;
}
private String getType() {
< prev index next >