equal
deleted
inserted
replaced
37 return; |
37 return; |
38 } |
38 } |
39 |
39 |
40 #ifdef ASSERT |
40 #ifdef ASSERT |
41 // can't do because of races |
41 // can't do because of races |
42 // assert(obj == NULL || obj->is_oop(), "expected an oop"); |
42 // assert(oopDesc::is_oop_or_null(obj), "expected an oop"); |
43 assert(check_obj_alignment(obj), "not oop aligned"); |
43 assert(check_obj_alignment(obj), "not oop aligned"); |
44 assert(_g1->is_in_reserved(obj), "must be in heap"); |
44 assert(_g1->is_in_reserved(obj), "must be in heap"); |
45 #endif // ASSERT |
45 #endif // ASSERT |
46 |
46 |
47 assert(from->is_in_reserved(p) || from->is_starts_humongous(), "p is not in from"); |
47 assert(from->is_in_reserved(p) || from->is_starts_humongous(), "p is not in from"); |