Thread.dump_to_file is not protected from mount/unmount

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 26
    • Affects Version/s: 25
    • Component/s: core-svc
    • None
    • generic
    • generic

      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.

            Assignee:
            Alex Menkov
            Reporter:
            Alex Menkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: