ThreadMXBean::get*ThreadCount methods including virtual threads

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 19
    • Component/s: core-svc

      As per the spec of the below methods
      getDaemonThreadCount()
      getPeakThreadCount()
      getThreadCount()

      Expected :
      "The count does not include virtual threads."
      Actual:
      It looks the count includes the virtual threads.

      The sample attached logs the values
      The values are 8 12 , if we comment the virtual thread in the code the count reduces.

            Assignee:
            Alan Bateman
            Reporter:
            Krushnareddy Ganapureddy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: