8252043: Move inner class metaspace cleaning out of safepoint cleanup tasks

Clean up inner metaspaces from ServiceThread if cleanup is needed for concurrent GCs.

Reviewed-by: eosterlund, pchilanomate
This commit is contained in:
Coleen Phillimore 2020-08-21 10:01:40 -04:00
parent 9d00332ee5
commit fac22ce20c
14 changed files with 60 additions and 28 deletions

View file

@ -1056,7 +1056,7 @@ void PSParallelCompact::post_compact()
}
// Delete metaspaces for unloaded class loaders and clean up loader_data graph
ClassLoaderDataGraph::purge();
ClassLoaderDataGraph::purge(/*at_safepoint*/true);
MetaspaceUtils::verify_metrics();
heap->prune_scavengable_nmethods();