Skip to content

Commit b8d2bdb

Browse files
author
Thomas Schatzl
committed
8355743: G1: Collection set clearing is not recorded as part of "Free Collection Set Time"
Reviewed-by: iwalulya, shade
1 parent e557b69 commit b8d2bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/gc/g1/g1YoungGCPostEvacuateTasks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,10 @@ class G1PostEvacuateCollectionSetCleanupTask2::FreeCollectionSetTask : public G1
881881
}
882882
FREE_C_HEAP_ARRAY(FreeCSetStats, _worker_stats);
883883

884+
_g1h->clear_collection_set();
885+
884886
G1GCPhaseTimes* p = _g1h->phase_times();
885887
p->record_serial_free_cset_time_ms((Ticks::now() - serial_time).seconds() * 1000.0);
886-
887-
_g1h->clear_collection_set();
888888
}
889889

890890
double worker_cost() const override { return G1CollectedHeap::heap()->collection_set()->region_length(); }

0 commit comments

Comments
 (0)