RFR: 8329109: Threads::print_on() tries to print CPU time for terminated GC threads
Albert Mingkun Yang
ayang at openjdk.org
Thu Mar 28 16:30:33 UTC 2024
On Thu, 28 Mar 2024 15:14:21 GMT, Richard Reingruber <rrich at openjdk.org> wrote:
> WatcherThread, NativeHeapTrimmerThread can also be terminated.
I see.
I notice that `Thread::print_on` contains `if (osthread() != nullptr) {` to skip some threads. Is it possible to expand this condition to skip zombie ones? (Or set `_osthread` to nullptr when a thread enters zombie state.)
> (Btw: G1CollectedHeap::stop() doesn't stop G1CollectedHeap::_cm. Likely an oversight)
`_cm` is not a thread; it's the data structure used by `_cm_thread`. Therefore, it shouldn't/can't be stopped.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18518#issuecomment-2025627393
More information about the hotspot-gc-dev
mailing list