8202017: Merge Reference Enqueuing phase with phase 3 of Reference processing

Do reference enqueuing work directly in phase 3 after every Reference.

Reviewed-by: kbarrett, sangheki
This commit is contained in:
Thomas Schatzl 2018-05-08 10:01:29 +02:00
parent 59d4a62f42
commit 035d0190a3
18 changed files with 48 additions and 280 deletions

View file

@ -1038,12 +1038,6 @@ void PSParallelCompact::post_compact()
DerivedPointerTable::update_pointers();
#endif
ReferenceProcessorPhaseTimes pt(&_gc_timer, ref_processor()->num_queues());
ref_processor()->enqueue_discovered_references(NULL, &pt);
pt.print_enqueue_phase();
if (ZapUnusedHeapArea) {
heap->gen_mangle_unused_area();
}