RFR: 8366925: Improper std::nothrow new expression in NativeHeapTrimmerThread ctor [v2]

Guanqiang Han ghan at openjdk.org
Tue Sep 16 07:48:49 UTC 2025


On Tue, 16 Sep 2025 03:20:28 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Guanqiang Han has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update trimNativeHeap.cpp
>>   
>>   remove std::nothrow and rely on the default new handling
>
> So we will now abort the VM if the allocation of the monitor fails. That seems okay as we are late in the VM initialization process and so if we have exhausted memory we are not going much further. regardless.

@dholmes-ora @kimbarrett Thank you for your approval .
 I've integrated this change, could you please kindly sponsor it ? Thanks!

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

PR Comment: https://git.openjdk.org/jdk/pull/27275#issuecomment-3296327473


More information about the hotspot-runtime-dev mailing list