comparison src/share/vm/gc_implementation/g1/heapRegionSeq.cpp @ 20335:eec72fa4b108

8040722: G1: Clean up usages of heap_region_containing Reviewed-by: tschatzl, jmasa
author brutisso
date Tue, 19 Aug 2014 12:39:06 +0200
parents 78bbf4d43a14
children 6701abbc4441
comparison
equal deleted inserted replaced
20334:ff3169f25621 20335:eec72fa4b108
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();
242 guarantee(addr_to_region(addr) == hr, "sanity"); 242 guarantee(addr_to_region(addr) == hr, "sanity");
243 guarantee(addr_to_region_unsafe(addr) == hr, "sanity");
244 } else { 243 } else {
245 guarantee(hr->is_empty(), "sanity"); 244 guarantee(hr->is_empty(), "sanity");
246 guarantee(!hr->isHumongous(), "sanity"); 245 guarantee(!hr->isHumongous(), "sanity");
247 // using assert instead of guarantee here since containing_set() 246 // using assert instead of guarantee here since containing_set()
248 // is only available in non-product builds. 247 // is only available in non-product builds.