< prev index next >

src/hotspot/share/gc/z/zCollectedHeap.cpp

Print this page

        

@@ -107,11 +107,11 @@
   ShouldNotReachHere();
   return false;
 }
 
 bool ZCollectedHeap::is_in(const void* p) const {
-  return _heap.is_in((uintptr_t)p);
+  return is_in_reserved(p) && _heap.is_in((uintptr_t)p);
 }
 
 uint32_t ZCollectedHeap::hash_oop(oop obj) const {
   return _heap.hash_oop(obj);
 }
< prev index next >