Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8357177

ThreadMXBean.getThreadInfo shows Carrier Threads as WAITING

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 21
    • core-svc

      ADDITIONAL SYSTEM INFORMATION :
      openjdk version "21.0.7" 2025-04-15 LTS
      OpenJDK Runtime Environment Temurin-21.0.7+6 (build 21.0.7+6-LTS)
      OpenJDK 64-Bit Server VM Temurin-21.0.7+6 (build 21.0.7+6-LTS, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      JConsole shows Carrier Threads as WAITING while java.lang.ThreadGroup#enumerate(java.lang.Thread[], boolean) reports them as runnable

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Create an application which starts numerous CPU intensive virtual threads. Also call java.lang.ThreadGroup#enumerate(java.lang.Thread[], boolean) to query status of the underlaying carrier threads.
      2. Run application and start JConsole to monitor the status of threads, open Threads tab

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Active Carrier Threads should be displayed as RUNNABLE
      ACTUAL -
      Active Carrier Threads are displayed as WAITING.

      ---------- BEGIN SOURCE ----------
      See attachment.
      ---------- END SOURCE ----------

        1. enumerate-status.png
          enumerate-status.png
          95 kB
        2. jconsole_thr.png
          jconsole_thr.png
          135 kB
        3. ThreadStatusTest.java
          3 kB
        4. ThreadUtils.java
          3 kB

            tongwan Andrew Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: