< prev index next >
src/hotspot/share/gc/z/zHeap.cpp
Print this page
*** 175,191 ****
return MIN2(size, max_tlab_size());
}
bool ZHeap::is_in(uintptr_t addr) const {
! if (addr < ZAddressReservedStart || addr >= ZAddressReservedEnd) {
! return false;
! }
! const ZPage* const page = _page_table.get(addr);
! if (page != NULL) {
! return page->is_in(addr);
}
return false;
}
--- 175,195 ----
return MIN2(size, max_tlab_size());
}
bool ZHeap::is_in(uintptr_t addr) const {
! // An address is considered to be "in the heap" if it points into
! // the allocated part of a pages, regardless of which heap view is
! // used. Note that an address with the finalizable metadata bit set
! // is not pointing into a heap view, and therefore not considered
! // to be "in the heap".
! if (ZAddress::is_in(addr)) {
! const ZPage* const page = _page_table.get(addr);
! if (page != NULL) {
! return page->is_in(addr);
! }
}
return false;
}
< prev index next >