mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8346108: [21u][BACKOUT] 8337994: [REDO] Native memory leak when not recording any events
Reviewed-by: mdoerr
This commit is contained in:
committed by
Sergey Shelomentsev
parent
ffebdca55c
commit
0d1be42c1f
@@ -756,15 +756,6 @@ static void write_classloaders() {
|
||||
CompositeCldCallback callback(&_subsystem_callback, &ccldwwc);
|
||||
do_class_loaders();
|
||||
}
|
||||
if (is_initial_typeset_for_chunk()) {
|
||||
CldPtr bootloader = get_cld(Universe::boolArrayKlassObj());
|
||||
assert(bootloader != nullptr, "invariant");
|
||||
if (IS_NOT_SERIALIZED(bootloader)) {
|
||||
write__classloader(_writer, bootloader);
|
||||
assert(IS_SERIALIZED(bootloader), "invariant");
|
||||
cldw.add(1);
|
||||
}
|
||||
}
|
||||
_artifacts->tally(cldw);
|
||||
}
|
||||
|
||||
|
||||
@@ -634,7 +634,11 @@ static void write_thread_local_buffer(JfrChunkWriter& chunkwriter, Thread* t) {
|
||||
|
||||
size_t JfrRecorderService::flush() {
|
||||
size_t total_elements = flush_metadata(_chunkwriter);
|
||||
total_elements = flush_storage(_storage, _chunkwriter);
|
||||
const size_t storage_elements = flush_storage(_storage, _chunkwriter);
|
||||
if (0 == storage_elements) {
|
||||
return total_elements;
|
||||
}
|
||||
total_elements += storage_elements;
|
||||
if (_string_pool.is_modified()) {
|
||||
total_elements += flush_stringpool(_string_pool, _chunkwriter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user