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

Improve iteration over non-JavaThreads

XMLWordPrintable

    • b09
    • generic
    • generic

        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.

              kbarrett Kim Barrett
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: