8366925: Improper std::nothrow new expression in NativeHeapTrimmerThread ctor

Reviewed-by: ayang, kbarrett, dholmes
This commit is contained in:
Guanqiang Han 2025-09-16 08:00:09 +00:00 committed by Albert Mingkun Yang
parent 73df06c80c
commit 3ba2e748d6

View File

@ -163,7 +163,7 @@ class NativeHeapTrimmerThread : public NamedThread {
public:
NativeHeapTrimmerThread() :
_lock(new (std::nothrow) PaddedMonitor(Mutex::nosafepoint, "NativeHeapTrimmer_lock")),
_lock(new PaddedMonitor(Mutex::nosafepoint, "NativeHeapTrimmer_lock")),
_stop(false),
_suspend_count(0),
_num_trims_performed(0)