< prev index next >

src/hotspot/share/runtime/vm_operations.cpp

Print this page
rev 50303 : Thread Dump Extension (memory allocation)

@@ -217,11 +217,21 @@
   }
   return true;
 }
 
 void VM_PrintThreads::doit() {
+  bool need_reset = false;
+  if (_extended_thread_info && FLAG_IS_DEFAULT(PrintExtendedThreadInfo) && !PrintExtendedThreadInfo) {
+    need_reset = true;
+    FLAG_SET_DEFAULT(PrintExtendedThreadInfo, true);
+  }
+
   Threads::print_on(_out, true, false, _print_concurrent_locks);
+
+  if (need_reset) {
+    FLAG_SET_DEFAULT(PrintExtendedThreadInfo, false);
+  }
 }
 
 void VM_PrintThreads::doit_epilogue() {
   if (_print_concurrent_locks) {
     // Release Heap_lock
< prev index next >