< prev index next >

src/share/vm/gc/g1/g1OopClosures.inline.hpp

Print this page

        

*** 105,115 **** template <class T> inline static void check_obj_during_refinement(T* p, oop const obj) { #ifdef ASSERT G1CollectedHeap* g1 = G1CollectedHeap::heap(); // can't do because of races ! // assert(obj == NULL || obj->is_oop(), "expected an oop"); assert(check_obj_alignment(obj), "not oop aligned"); assert(g1->is_in_reserved(obj), "must be in heap"); HeapRegion* from = g1->heap_region_containing(p); --- 105,115 ---- template <class T> inline static void check_obj_during_refinement(T* p, oop const obj) { #ifdef ASSERT G1CollectedHeap* g1 = G1CollectedHeap::heap(); // can't do because of races ! // assert(obj == NULL || oopDesc::is_oop(obj), "expected an oop"); assert(check_obj_alignment(obj), "not oop aligned"); assert(g1->is_in_reserved(obj), "must be in heap"); HeapRegion* from = g1->heap_region_containing(p);
< prev index next >