RFR: 8366865: Allocation GC Pauses Triggered after JVM has started shutdown [v8]

Ivan Walulya iwalulya at openjdk.org
Mon Sep 22 05:56:59 UTC 2025


On Fri, 19 Sep 2025 10:01:43 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Ivan Walulya has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   remove assert
>
> src/hotspot/share/gc/shared/collectedHeap.cpp line 626:
> 
>> 624:   //     triggers a GC.
>> 625:   MonitorLocker ml(VMExit_lock);
>> 626:   ml.wait(2 * MILLIUNITS);
> 
> I think one can use `ThreadBlockInVM` + sleep to achieve the blocking-current-thread purpose. Then, there is no need for a new lock, as there is no critical-region anyway.

Changed to just using sleep.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27190#discussion_r2366793152


More information about the hotspot-dev mailing list