src/hotspot/share/oops/oop.inline.hpp
changeset 47624 b055cb5170f5
parent 47609 a1f68e415b48
child 47634 6a0c42c40cd1
--- a/src/hotspot/share/oops/oop.inline.hpp	Fri Oct 13 14:02:01 2017 +0200
+++ b/src/hotspot/share/oops/oop.inline.hpp	Fri Oct 13 15:08:56 2017 +0200
@@ -539,7 +539,7 @@
 }
 
 bool oopDesc::is_scavengable() const {
-  return Universe::heap()->is_scavengable(this);
+  return Universe::heap()->is_scavengable(oop(const_cast<oopDesc*>(this)));
 }
 
 // Used by scavengers