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

Improve iteration over non-JavaThreads

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b09
    • CPU:
      generic
    • OS:
      generic

      Description

      We sometimes want to iterate over all threads, or all non-JavaThreads, but there is presently no convient collection of the non-JavaThreads. Instead, Threads::non_java_threads_do obtains some threads from other components, and passes the closure off to still other componets.

      JDK-8209850 added a list of NamedThreads and iteration over that list. However, there are non-JavaThread classes which are not NamedThread, so not included in that list. It would simplify things if we had a list that included all of the non-JavaThreads.

      We could move the outlier Thread classes under NamedThread, but better would be to add a new NonJavaThread class and move the list management and iteration there.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kbarrett Kim Barrett
                Reporter:
                kbarrett Kim Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: