6855115: G1: Fix for 6850869 is incorrect

Missed updating two variable names when improving the code for 6850869.

Reviewed-by: iveresov, jmasa, ysr
This commit is contained in:
Antonios Printezis 2009-06-29 12:17:03 -04:00
parent bf215dbb7e
commit eec17fe775

View File

@ -1256,8 +1256,8 @@ public:
// the humongous regions (in case this changes in the future).
G1CollectedHeap* g1h = G1CollectedHeap::heap();
size_t end_index = index + 1;
while (index < g1h->n_regions()) {
HeapRegion* chr = g1h->region_at(index);
while (end_index < g1h->n_regions()) {
HeapRegion* chr = g1h->region_at(end_index);
if (!chr->continuesHumongous()) {
break;
}