< prev index next >
src/hotspot/share/gc/shared/space.hpp
Print this page
*** 143,152 ****
--- 143,155 ----
// on account of its inadvertent use in product jvm's,
// we restrict its use to assertion checks only.
bool is_in(const void* p) const {
return used_region().contains(p);
}
+ bool is_in(oop obj) const {
+ return is_in((void*)obj);
+ }
// Returns true iff the given reserved memory of the space contains the
// given address.
bool is_in_reserved(const void* p) const { return _bottom <= p && p < _end; }
< prev index next >