hotspot/src/share/vm/gc_implementation/g1/heapRegionSeq.cpp
changeset 24424 2658d7834c6e
parent 24106 dae9277bdf2a
child 26157 70eddb655686
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2014, 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.
   231   for (uint i = 0; i < _allocated_length; i += 1) {
   231   for (uint i = 0; i < _allocated_length; i += 1) {
   232     HeapRegion* hr = _regions.get_by_index(i);
   232     HeapRegion* hr = _regions.get_by_index(i);
   233     guarantee(hr != NULL, err_msg("invariant: i: %u", i));
   233     guarantee(hr != NULL, err_msg("invariant: i: %u", i));
   234     guarantee(hr->bottom() == prev_end,
   234     guarantee(hr->bottom() == prev_end,
   235               err_msg("invariant i: %u "HR_FORMAT" prev_end: "PTR_FORMAT,
   235               err_msg("invariant i: %u "HR_FORMAT" prev_end: "PTR_FORMAT,
   236                       i, HR_FORMAT_PARAMS(hr), prev_end));
   236                       i, HR_FORMAT_PARAMS(hr), p2i(prev_end)));
   237     guarantee(hr->hrs_index() == i,
   237     guarantee(hr->hrs_index() == i,
   238               err_msg("invariant: i: %u hrs_index(): %u", i, hr->hrs_index()));
   238               err_msg("invariant: i: %u hrs_index(): %u", i, hr->hrs_index()));
   239     if (i < length()) {
   239     if (i < length()) {
   240       // Asserts will fire if i is >= _length
   240       // Asserts will fire if i is >= _length
   241       HeapWord* addr = hr->bottom();
   241       HeapWord* addr = hr->bottom();