mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8269064: Dropped messages of AsyncLogWriter cause memleak
Reviewed-by: dholmes, simonis
This commit is contained in:
parent
ce917b2359
commit
1323be54d2
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ void AsyncLogWriter::enqueue_locked(const AsyncLogMessage& msg) {
|
||||||
uint32_t* counter = _stats.add_if_absent(msg.output(), 0, &p_created);
|
uint32_t* counter = _stats.add_if_absent(msg.output(), 0, &p_created);
|
||||||
*counter = *counter + 1;
|
*counter = *counter + 1;
|
||||||
// drop the enqueueing message.
|
// drop the enqueueing message.
|
||||||
|
os::free(msg.message());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue