src/hotspot/share/gc/shared/space.hpp
changeset 49592 77fb0be7d19f
parent 49164 7e958a8ebcd3
child 49982 9042ffe5b7fe
--- a/src/hotspot/share/gc/shared/space.hpp	Fri Mar 23 12:55:39 2018 +0100
+++ b/src/hotspot/share/gc/shared/space.hpp	Thu Mar 15 21:24:10 2018 +0100
@@ -145,6 +145,9 @@
   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.