mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8008966: NPG: Inefficient Metaspace counter functions cause large young GC regressions
Reviewed-by: mgerdin, coleenp
This commit is contained in:
parent
eafc00bc25
commit
d72b516201
12 changed files with 398 additions and 175 deletions
|
@ -891,7 +891,7 @@ public:
|
|||
_heap_used = heap->used();
|
||||
_young_gen_used = heap->young_gen()->used_in_bytes();
|
||||
_old_gen_used = heap->old_gen()->used_in_bytes();
|
||||
_metadata_used = MetaspaceAux::used_in_bytes();
|
||||
_metadata_used = MetaspaceAux::allocated_used_bytes();
|
||||
};
|
||||
|
||||
size_t heap_used() const { return _heap_used; }
|
||||
|
@ -1026,6 +1026,7 @@ void PSParallelCompact::post_compact()
|
|||
|
||||
// Delete metaspaces for unloaded class loaders and clean up loader_data graph
|
||||
ClassLoaderDataGraph::purge();
|
||||
MetaspaceAux::verify_metrics();
|
||||
|
||||
Threads::gc_epilogue();
|
||||
CodeCache::gc_epilogue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue