mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8211123: GC Metaspace printing after full gc
Move GC printing to after usage is calculated Co-authored-by: Jiapeng Li <nijiaben@perfma.com> Reviewed-by: tschatzl, stuefe
This commit is contained in:
parent
cd95f5a933
commit
a87e8e52ea
3 changed files with 146 additions and 3 deletions
|
@ -649,9 +649,6 @@ void GenCollectedHeap::do_collection(bool full,
|
|||
// a whole heap collection.
|
||||
complete = complete || collected_old;
|
||||
|
||||
print_heap_change(young_prev_used, old_prev_used);
|
||||
MetaspaceUtils::print_metaspace_change(metadata_prev_used);
|
||||
|
||||
// Adjust generation sizes.
|
||||
if (collected_old) {
|
||||
_old_gen->compute_new_size();
|
||||
|
@ -667,6 +664,9 @@ void GenCollectedHeap::do_collection(bool full,
|
|||
update_full_collections_completed();
|
||||
}
|
||||
|
||||
print_heap_change(young_prev_used, old_prev_used);
|
||||
MetaspaceUtils::print_metaspace_change(metadata_prev_used);
|
||||
|
||||
// Track memory usage and detect low memory after GC finishes
|
||||
MemoryService::track_memory_usage();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue