equal
deleted
inserted
replaced
368 } |
368 } |
369 #endif |
369 #endif |
370 } |
370 } |
371 |
371 |
372 void G1BlockOffsetArray::verify() const { |
372 void G1BlockOffsetArray::verify() const { |
|
373 assert(gsp()->bottom() < gsp()->top(), "Only non-empty regions should be verified."); |
373 size_t start_card = _array->index_for(gsp()->bottom()); |
374 size_t start_card = _array->index_for(gsp()->bottom()); |
374 size_t end_card = _array->index_for(gsp()->top()); |
375 size_t end_card = _array->index_for(gsp()->top() - 1); |
375 |
376 |
376 for (size_t current_card = start_card; current_card < end_card; current_card++) { |
377 for (size_t current_card = start_card; current_card < end_card; current_card++) { |
377 u_char entry = _array->offset_array(current_card); |
378 u_char entry = _array->offset_array(current_card); |
378 if (entry < N_words) { |
379 if (entry < N_words) { |
379 // The entry should point to an object before the current card. Verify that |
380 // The entry should point to an object before the current card. Verify that |