RFR: 8322853: Should use ConditionalMutexLocker in NativeHeapTrimmerThread::print_state

Denghui Dong ddong at openjdk.org
Wed Jan 3 07:06:59 UTC 2024


On Tue, 2 Jan 2024 16:04:30 GMT, Denghui Dong <ddong at openjdk.org> wrote:

> Hi all,
> 
> Please help review this small fix.
> 
> MutexLocker requires that mutex != nullptr, so we should use ConditionalMutexLocker instead.
> 
> ~~Also, this patch made '_stop' volatile, since it will be read twice in run() but may be changed.~~

Updated.

Thanks for the explanation.

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

PR Comment: https://git.openjdk.org/jdk/pull/17226#issuecomment-1874930999


More information about the hotspot-runtime-dev mailing list