hotspot/src/share/vm/gc_implementation/g1/heapRegionManager.cpp
changeset 29580 a67a581cfe11
parent 27905 12c6386f6775
child 29698 9be8d1b0dfdc
equal deleted inserted replaced
29477:82f545c6572b 29580:a67a581cfe11
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   268   // This also (potentially) iterates over regions newly allocated during GC. This
   268   // This also (potentially) iterates over regions newly allocated during GC. This
   269   // is no problem except for some extra work.
   269   // is no problem except for some extra work.
   270   const uint n_regions = hrclaimer->n_regions();
   270   const uint n_regions = hrclaimer->n_regions();
   271   for (uint count = 0; count < n_regions; count++) {
   271   for (uint count = 0; count < n_regions; count++) {
   272     const uint index = (start_index + count) % n_regions;
   272     const uint index = (start_index + count) % n_regions;
   273     assert(0 <= index && index < n_regions, "sanity");
   273     assert(index < n_regions, "sanity");
   274     // Skip over unavailable regions
   274     // Skip over unavailable regions
   275     if (!is_available(index)) {
   275     if (!is_available(index)) {
   276       continue;
   276       continue;
   277     }
   277     }
   278     HeapRegion* r = _regions.get_by_index(index);
   278     HeapRegion* r = _regions.get_by_index(index);