RFR: 8361238: G1 tries to get CPU info from terminated threads at shutdown
    Arno Zeller 
    azeller at openjdk.org
       
    Wed Jul  2 11:07:39 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
Looks good to me - just verified that it solves the issues we have seen on AIX in tier1 tests.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26086#issuecomment-3027438351
    
    
More information about the hotspot-runtime-dev
mailing list