equal
deleted
inserted
replaced
1254 // this based on the metadata itself, and not the region |
1254 // this based on the metadata itself, and not the region |
1255 // contents, so that this code is not aware of what goes into |
1255 // contents, so that this code is not aware of what goes into |
1256 // the humongous regions (in case this changes in the future). |
1256 // the humongous regions (in case this changes in the future). |
1257 G1CollectedHeap* g1h = G1CollectedHeap::heap(); |
1257 G1CollectedHeap* g1h = G1CollectedHeap::heap(); |
1258 size_t end_index = index + 1; |
1258 size_t end_index = index + 1; |
1259 while (index < g1h->n_regions()) { |
1259 while (end_index < g1h->n_regions()) { |
1260 HeapRegion* chr = g1h->region_at(index); |
1260 HeapRegion* chr = g1h->region_at(end_index); |
1261 if (!chr->continuesHumongous()) { |
1261 if (!chr->continuesHumongous()) { |
1262 break; |
1262 break; |
1263 } |
1263 } |
1264 end_index += 1; |
1264 end_index += 1; |
1265 } |
1265 } |