< prev index next >

src/hotspot/share/gc/serial/markSweep.cpp

Print this page

        

*** 130,139 **** --- 130,141 ---- assert(!Universe::heap()->is_in(p), "roots shouldn't be things within the heap"); T heap_oop = RawAccess<>::oop_load(p); if (!CompressedOops::is_null(heap_oop)) { oop obj = CompressedOops::decode_not_null(heap_oop); + assert_object_is_in_heap(p, obj); + if (!obj->mark_raw().is_marked()) { mark_object(obj); follow_object(obj); } }
< prev index next >