< prev index next >

src/share/vm/gc_implementation/g1/heapRegionManager.cpp

Print this page
rev 7793 : 8073315: Enable gcc -Wtype-limits and fix upcoming issues.

@@ -268,11 +268,11 @@
   // This also (potentially) iterates over regions newly allocated during GC. This
   // is no problem except for some extra work.
   const uint n_regions = hrclaimer->n_regions();
   for (uint count = 0; count < n_regions; count++) {
     const uint index = (start_index + count) % n_regions;
-    assert(0 <= index && index < n_regions, "sanity");
+    assert(index < n_regions, "sanity");
     // Skip over unavailable regions
     if (!is_available(index)) {
       continue;
     }
     HeapRegion* r = _regions.get_by_index(index);
< prev index next >