Integrated: 8361238: G1 tries to get CPU info from terminated threads at shutdown
Thomas Schatzl
tschatzl at openjdk.org
Thu Jul 3 07:01:54 UTC 2025
On Wed, 2 Jul 2025 07:57:28 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
> Hi all,
>
> please review this fix after the recent changes in void JDK-8274051 where G1 tries to get thread cpu time on already terminated threads.
>
> The fix is to move the printing/statistics before stopping the threads. This seems fine for the two implementors of the method.
>
> In a future change, since so few GCs implement `print_tracing_info`, the call should probably move to `stop()/begin_exit()`.
>
> Testing: gha
>
> Thanks,
> Thomas
This pull request has now been integrated.
Changeset: 6c9236c8
Author: Thomas Schatzl <tschatzl at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6c9236c80c236487a7c37dcb947c0f9192322208
Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod
8361238: G1 tries to get CPU info from terminated threads at shutdown
Reviewed-by: kbarrett, sangheki
-------------
PR: https://git.openjdk.org/jdk/pull/26086
More information about the hotspot-gc-dev
mailing list