RFR: 8366328: G1: Crash on reading os::thread_cpu_time

Ivan Walulya iwalulya at openjdk.org
Wed Sep 10 08:01:00 UTC 2025


On Wed, 10 Sep 2025 05:42:50 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Can you not use VMThread::is_terminated() to check for shutdown?

`before_exit(thread)` happens before `VMThread::wait_for_vm_thread_exit();` which sets the `_is_terminated`, so it too late since we terminate the concurrent GC threads at `before_exit`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27087#issuecomment-3273777897


More information about the hotspot-gc-dev mailing list