< prev index next >
src/hotspot/share/gc/g1/g1CardTable.hpp
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.
@@ -60,11 +60,14 @@
}
bool is_card_dirty(size_t card_index) {
return _byte_map[card_index] == dirty_card_val();
}
- static CardValue g1_young_card_val() { return g1_young_gen; }
+ static CardValue g1_young_card_val() {
+ assert(!G1FastWriteBarrier, "should not be called");
+ return g1_young_gen;
+ }
/*
Claimed and deferred bits are used together in G1 during the evacuation
pause. These bits can have the following state transitions:
1. The claimed bit can be put over any other card state. Except that
@@ -83,10 +86,11 @@
}
inline void set_card_claimed(size_t card_index);
void verify_g1_young_region(MemRegion mr) PRODUCT_RETURN;
+ void verfiy_claimed_dirty_region(MemRegion mr) PRODUCT_RETURN;
void g1_mark_as_young(const MemRegion& mr);
bool mark_card_deferred(size_t card_index);
bool is_card_deferred(size_t card_index) {
< prev index next >