equal
deleted
inserted
replaced
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. |