8144052: mark_card_deferred does not need to check g1_young_gen
Reviewed-by: tschatzl, mgerdin
This commit is contained in:
parent
34d5bd8db1
commit
86d5c93087
@ -101,7 +101,7 @@ class G1ParScanThreadState : public CHeapObj<mtGC> {
|
||||
template <class T> void update_rs(HeapRegion* from, T* p) {
|
||||
// If the new value of the field points to the same region or
|
||||
// is the to-space, we don't need to include it in the Rset updates.
|
||||
if (!from->is_in_reserved(oopDesc::load_decode_heap_oop(p)) && !from->is_survivor()) {
|
||||
if (!from->is_in_reserved(oopDesc::load_decode_heap_oop(p)) && !from->is_young()) {
|
||||
size_t card_index = ctbs()->index_for(p);
|
||||
// If the card hasn't been added to the buffer, do it.
|
||||
if (ctbs()->mark_card_deferred(card_index)) {
|
||||
|
@ -85,11 +85,6 @@ bool G1SATBCardTableModRefBS::mark_card_deferred(size_t card_index) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (val == g1_young_gen) {
|
||||
// the card is for a young gen region. We don't need to keep track of all pointers into young
|
||||
return false;
|
||||
}
|
||||
|
||||
// Cached bit can be installed either on a clean card or on a claimed card.
|
||||
jbyte new_val = val;
|
||||
if (val == clean_card_val()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user