Skip to content
Permalink
Browse files
8262885: Shenandoah: FullGC prologue does not need to save/restore he…
…ap has_forwarded_object flag

Reviewed-by: shade
  • Loading branch information
zhengyu123 committed Mar 3, 2021
1 parent 1d2c1e6 commit 2d2ef08c0fd99f8d486e47be96fb1559140c6bb3
Showing 1 changed file with 3 additions and 4 deletions.
@@ -179,15 +179,14 @@ void ShenandoahFullGC::do_it(GCCause::Cause gc_cause) {
ShenandoahReferenceProcessor* rp = heap->ref_processor();
rp->abandon_partial_discovery();

// f. Set back forwarded objects bit back, in case some steps above dropped it.
heap->set_has_forwarded_objects(has_forwarded_objects);

// g. Sync pinned region status from the CP marks
// f. Sync pinned region status from the CP marks
heap->sync_pinned_region_status();

// The rest of prologue:
BiasedLocking::preserve_marks();
_preserved_marks->init(heap->workers()->active_workers());

assert(heap->has_forwarded_objects() == has_forwarded_objects, "This should not change");
}

if (UseTLAB) {

0 comments on commit 2d2ef08

Please sign in to comment.