src/hotspot/share/utilities/globalCounter.cpp
changeset 51511 eb8d5aeabab3
parent 51405 8b23aa7cef47
child 51548 35a6956f4243
--- a/src/hotspot/share/utilities/globalCounter.cpp	Thu Aug 23 12:57:40 2018 -0700
+++ b/src/hotspot/share/utilities/globalCounter.cpp	Thu Aug 23 18:14:53 2018 -0400
@@ -71,5 +71,7 @@
   for (JavaThreadIteratorWithHandle jtiwh; JavaThread *thread = jtiwh.next(); ) {
     ctc.do_thread(thread);
   }
-  ctc.do_thread(VMThread::vm_thread());
+  for (NamedThread::Iterator nti; !nti.end(); nti.step()) {
+    ctc.do_thread(nti.current());
+  }
 }