Blocks :
|
|
Duplicate :
|
|
Relates :
|
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.
|