mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-23 22:29:55 +00:00
8335121: Native memory leak when not recording any events
Reviewed-by: egahlin, shade
This commit is contained in:
parent
a117945d5a
commit
ef909bdf7f
@ -639,11 +639,7 @@ static void write_thread_local_buffer(JfrChunkWriter& chunkwriter, Thread* t) {
|
||||
|
||||
size_t JfrRecorderService::flush() {
|
||||
size_t total_elements = flush_metadata(_chunkwriter);
|
||||
const size_t storage_elements = flush_storage(_storage, _chunkwriter);
|
||||
if (0 == storage_elements) {
|
||||
return total_elements;
|
||||
}
|
||||
total_elements += storage_elements;
|
||||
total_elements += flush_storage(_storage, _chunkwriter);
|
||||
if (_string_pool.is_modified()) {
|
||||
total_elements += flush_stringpool(_string_pool, _chunkwriter);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user