equal
deleted
inserted
replaced
58 #endif // CHECK_UNHANDLED_OOPS |
58 #endif // CHECK_UNHANDLED_OOPS |
59 assert((intptr_t)o % MinObjAlignmentInBytes == 0, "not oop aligned"); |
59 assert((intptr_t)o % MinObjAlignmentInBytes == 0, "not oop aligned"); |
60 assert(_g1->is_in_reserved(obj), "must be in heap"); |
60 assert(_g1->is_in_reserved(obj), "must be in heap"); |
61 #endif // ASSERT |
61 #endif // ASSERT |
62 |
62 |
63 assert(from == NULL || from->is_in_reserved(p), "p is not in from"); |
63 assert(from->is_in_reserved(p) || from->is_starts_humongous(), "p is not in from"); |
64 |
64 |
65 HeapRegion* to = _g1->heap_region_containing(obj); |
65 HeapRegion* to = _g1->heap_region_containing(obj); |
66 if (from != to) { |
66 if (from != to) { |
67 assert(to->rem_set() != NULL, "Need per-region 'into' remsets."); |
67 assert(to->rem_set() != NULL, "Need per-region 'into' remsets."); |
68 to->rem_set()->add_reference(p, tid); |
68 to->rem_set()->add_reference(p, tid); |