Skip to content

Commit 8287886

Browse files
hgqxjjpull[bot]
authored andcommitted
8366925: Improper std::nothrow new expression in NativeHeapTrimmerThread ctor
Reviewed-by: ayang, kbarrett, dholmes
1 parent 6da8632 commit 8287886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/runtime/trimNativeHeap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class NativeHeapTrimmerThread : public NamedThread {
163163
public:
164164

165165
NativeHeapTrimmerThread() :
166-
_lock(new (std::nothrow) PaddedMonitor(Mutex::nosafepoint, "NativeHeapTrimmer_lock")),
166+
_lock(new PaddedMonitor(Mutex::nosafepoint, "NativeHeapTrimmer_lock")),
167167
_stop(false),
168168
_suspend_count(0),
169169
_num_trims_performed(0)

0 commit comments

Comments
 (0)