Skip to content

Commit 1323be5

Browse files
Xin Liusimonis
authored andcommitted
8269064: Dropped messages of AsyncLogWriter cause memleak
Reviewed-by: dholmes, simonis
1 parent ce917b2 commit 1323be5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hotspot/share/logging/logAsyncWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ void AsyncLogWriter::enqueue_locked(const AsyncLogMessage& msg) {
4646
uint32_t* counter = _stats.add_if_absent(msg.output(), 0, &p_created);
4747
*counter = *counter + 1;
4848
// drop the enqueueing message.
49+
os::free(msg.message());
4950
return;
5051
}
5152

0 commit comments

Comments
 (0)