changeset 880:3eb9872b10ce

6855115: G1: Fix for 6850869 is incorrect Summary: Missed updating two variable names when improving the code for 6850869. Reviewed-by: iveresov, jmasa, ysr
author tonyp
date Mon, 29 Jun 2009 12:17:03 -0400
parents 00f7ec32f290
children e7d5557ad624
files src/share/vm/gc_implementation/g1/concurrentMark.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Fri Jun 26 09:22:19 2009 -0700
+++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Mon Jun 29 12:17:03 2009 -0400
@@ -1256,8 +1256,8 @@
       // 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;
         }