Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8276548: Use range based visitor for Howl-Full cards #6230

Changes from 1 commit
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -370,9 +370,11 @@ class G1RemSetScanState : public CHeapObj<mtGC> {

void set_chunk_range_dirty(size_t const region_card_idx, size_t const card_length) {
size_t chunk_idx = region_card_idx >> _scan_chunks_shift;
size_t const num_chunks = (card_length + scan_chunk_size_in_cards() - 1) >> _scan_chunks_shift;
for (uint i = 0; i < num_chunks; i++) {
_region_scan_chunks[chunk_idx++] = true;
// Make sure that all chunks that contain the range are marked. Calculate the
// chunk of the last card that is actually marked.
size_t const end_chunk = (region_card_idx + card_length - 1) >> _scan_chunks_shift;
for (; chunk_idx <= end_chunk; chunk_idx++) {
_region_scan_chunks[chunk_idx] = true;