diff --git a/src/hotspot/share/gc/shenandoah/shenandoahDegeneratedGC.cpp b/src/hotspot/share/gc/shenandoah/shenandoahDegeneratedGC.cpp index 8b473817393..3c3cdc4a90a 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahDegeneratedGC.cpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahDegeneratedGC.cpp @@ -252,7 +252,6 @@ void ShenandoahDegenGC::op_degenerated() { // it, we fail degeneration right away and slide into Full GC to recover. { - heap->flush_region_pin_cache(); heap->sync_pinned_region_status(); heap->collection_set()->clear_current_index(); ShenandoahHeapRegion* r; diff --git a/src/hotspot/share/gc/shenandoah/shenandoahFullGC.cpp b/src/hotspot/share/gc/shenandoah/shenandoahFullGC.cpp index c1d13e9a3a5..cab0db7e78a 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahFullGC.cpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahFullGC.cpp @@ -209,7 +209,6 @@ void ShenandoahFullGC::do_it(GCCause::Cause gc_cause) { rp->abandon_partial_discovery(); // e. Sync pinned region status from the CP marks - heap->flush_region_pin_cache(); heap->sync_pinned_region_status(); if (heap->mode()->is_generational()) {