< prev index next >
src/hotspot/share/gc/g1/g1Policy.cpp
Print this page
rev 55404 : 8226197: Reducing G1?s CPU cost with simplified write post-barrier and disabling concurrent refinement
Summary: A prototype to add a mode for G1 to use a simplified write post-barrier. Guarded by new flag G1FastWriteBarrier.
@@ -488,11 +488,13 @@
"Maximum survivor regions %u plus used regions %u exceeds max regions %u",
max_survivor_regions(), _g1h->num_used_regions(), _g1h->max_regions());
assert_used_and_recalculate_used_equal(_g1h);
phase_times()->record_cur_collection_start_sec(start_time_sec);
- _pending_cards = _g1h->pending_card_num();
+ size_t pending_cards = _g1h->pending_card_num();
+ assert(!G1FastWriteBarrier || pending_cards == 0, "non-zero pending cards");
+ _pending_cards = pending_cards;
_collection_set->reset_bytes_used_before();
_bytes_copied_during_gc = 0;
// do that for any other surv rate groups
< prev index next >