< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
Print this page
*** 1233,1242 ****
--- 1233,1244 ----
template <class T>
void do_oop_work(T* p) {
T o = RawAccess<>::oop_load(p);
if (!CompressedOops::is_null(o)) {
oop obj = CompressedOops::decode_not_null(o);
+ assert_object_is_in_heap(p, obj);
+
oop fwd = (oop) ShenandoahForwarding::get_forwardee_raw_unchecked(obj);
if (fwd == NULL) {
// There is an odd interaction with VM_HeapWalkOperation, see jvmtiTagMap.cpp.
//
// That operation walks the reachable objects on its own, storing the marking
< prev index next >