@@ -98,12 +98,14 @@ // is not yet valid, so loosen the assertion while (bottom < top) { // This test can be moved up but for now check every oop. assert((*bottom)->is_oop(), "handle should point to oop"); - - f->do_oop(bottom++); + if (Universe::heap()->is_in_reserved_or_null(*bottom)) { + f->do_oop(bottom); + } + bottom++; } return handles_visited; } // Used for debugging handle allocation.