diff -r 0a5f1b851890 -r b055cb5170f5 src/hotspot/share/oops/oop.inline.hpp --- 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(this))); } // Used by scavengers