< prev index next >
src/share/vm/gc/g1/heapRegionManager.inline.hpp
Print this page
*** 45,58 ****
assert(hr != NULL, "sanity");
assert(hr->hrm_index() == index, "sanity");
return hr;
}
! inline HeapRegion* HeapRegionManager::next_humongous_region(HeapRegion* hr) const {
uint index = hr->hrm_index();
assert(is_available(index), "pre-condition");
! assert(hr->is_humongous(), "next_humongous_region should only be called for a humongous region.");
index++;
if (index < max_length() && is_available(index) && at(index)->is_continues_humongous()) {
return at(index);
} else {
return NULL;
--- 45,58 ----
assert(hr != NULL, "sanity");
assert(hr->hrm_index() == index, "sanity");
return hr;
}
! inline HeapRegion* HeapRegionManager::next_region_in_humongous(HeapRegion* hr) const {
uint index = hr->hrm_index();
assert(is_available(index), "pre-condition");
! assert(hr->is_humongous(), "next_region_in_humongous should only be called for a humongous region.");
index++;
if (index < max_length() && is_available(index) && at(index)->is_continues_humongous()) {
return at(index);
} else {
return NULL;
< prev index next >