RFR: 8361238: G1 tries to get CPU info from terminated threads at shutdown
    Thomas Schatzl 
    tschatzl at openjdk.org
       
    Wed Jul  2 09:15:51 UTC 2025
    
    
  
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
-------------
Commit messages:
 - 8361238
Changes: https://git.openjdk.org/jdk/pull/26086/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26086&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8361238
  Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/26086.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26086/head:pull/26086
PR: https://git.openjdk.org/jdk/pull/26086
    
    
More information about the hotspot-runtime-dev
mailing list