hotspot/src/share/vm/gc_implementation/g1/heapRegionSeq.cpp
changeset 24106 dae9277bdf2a
parent 23450 c7c6202fc7e2
child 24424 2658d7834c6e
equal deleted inserted replaced
24105:93ea1c7cae36 24106:dae9277bdf2a
   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.