mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-11 19:08:23 +00:00
8269064: Dropped messages of AsyncLogWriter cause memleak
Reviewed-by: dholmes, simonis
This commit is contained in:
parent
ce917b2359
commit
1323be54d2
@ -46,6 +46,7 @@ void AsyncLogWriter::enqueue_locked(const AsyncLogMessage& msg) {
|
||||
uint32_t* counter = _stats.add_if_absent(msg.output(), 0, &p_created);
|
||||
*counter = *counter + 1;
|
||||
// drop the enqueueing message.
|
||||
os::free(msg.message());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user