jcmd Thread.dump_to_file commend and HotSpotDiagnosticMXBean.dumpThreads are implemented by ThreadSnapshotFactory::get_thread_snapshot().
It uses JvmtiVTMSTransitionDisabler to disable mount/unmount of virtual threads.
But JvmtiVTMSTransitionDisabler works only when some agent is loaded in the VM.
It uses JvmtiVTMSTransitionDisabler to disable mount/unmount of virtual threads.
But JvmtiVTMSTransitionDisabler works only when some agent is loaded in the VM.
- relates to
-
JDK-8357650 ThreadSnapshot to take snapshot of thread for thread dumps
-
- Resolved
-