equal
deleted
inserted
replaced
193 // regions, or we successfully claimed the region. |
193 // regions, or we successfully claimed the region. |
194 |
194 |
195 HeapRegionRemSetIterator iter(hrrs); |
195 HeapRegionRemSetIterator iter(hrrs); |
196 size_t card_index; |
196 size_t card_index; |
197 |
197 |
198 // We claim cards in block so as to recude the contention. The block size is determined by |
198 // We claim cards in block so as to reduce the contention. The block size is determined by |
199 // the G1RSetScanBlockSize parameter. |
199 // the G1RSetScanBlockSize parameter. |
200 size_t jump_to_card = hrrs->iter_claimed_next(_block_size); |
200 size_t jump_to_card = hrrs->iter_claimed_next(_block_size); |
201 for (size_t current_card = 0; iter.has_next(card_index); current_card++) { |
201 for (size_t current_card = 0; iter.has_next(card_index); current_card++) { |
202 if (current_card >= jump_to_card + _block_size) { |
202 if (current_card >= jump_to_card + _block_size) { |
203 jump_to_card = hrrs->iter_claimed_next(_block_size); |
203 jump_to_card = hrrs->iter_claimed_next(_block_size); |
585 return false; |
585 return false; |
586 } |
586 } |
587 |
587 |
588 // While we are processing RSet buffers during the collection, we |
588 // While we are processing RSet buffers during the collection, we |
589 // actually don't want to scan any cards on the collection set, |
589 // actually don't want to scan any cards on the collection set, |
590 // since we don't want to update remebered sets with entries that |
590 // since we don't want to update remembered sets with entries that |
591 // point into the collection set, given that live objects from the |
591 // point into the collection set, given that live objects from the |
592 // collection set are about to move and such entries will be stale |
592 // collection set are about to move and such entries will be stale |
593 // very soon. This change also deals with a reliability issue which |
593 // very soon. This change also deals with a reliability issue which |
594 // involves scanning a card in the collection set and coming across |
594 // involves scanning a card in the collection set and coming across |
595 // an array that was being chunked and looking malformed. Note, |
595 // an array that was being chunked and looking malformed. Note, |