< prev index next >

src/hotspot/share/gc/shared/collectedHeap.hpp

Print this page

        

*** 532,537 **** --- 532,545 ---- ~GCCauseSetter() { _heap->set_gc_cause(_previous_cause); } }; + #define assert_object_is_in_heap(oop_addr, obj) \ + assert(Universe::heap()->is_in(obj), \ + "object not in heap " PTR_FORMAT " " PTR_FORMAT, \ + p2i(oop_addr), p2i(obj)) + + #define assert_object_is_in_heap_or_null(oop_addr, obj) \ + debug_only(if (obj != NULL)) assert_object_is_in_heap(oop_addr, obj) + #endif // SHARE_GC_SHARED_COLLECTEDHEAP_HPP
< prev index next >