8220343: Move scavenge_root_nmethods from shared code

Reviewed-by: kvn, eosterlund
This commit is contained in:
Stefan Karlsson 2019-03-14 09:15:51 +01:00
parent 3796014d86
commit 2370adc703
32 changed files with 521 additions and 399 deletions

View file

@ -1061,7 +1061,7 @@ void PSParallelCompact::post_compact()
ClassLoaderDataGraph::purge();
MetaspaceUtils::verify_metrics();
CodeCache::gc_epilogue();
heap->prune_nmethods();
JvmtiExport::gc_epilogue();
#if COMPILER2_OR_JVMCI
@ -1807,8 +1807,6 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
// Let the size policy know we're starting
size_policy->major_collection_begin();
CodeCache::gc_prologue();
#if COMPILER2_OR_JVMCI
DerivedPointerTable::clear();
#endif