hotspot/src/share/vm/gc/g1/g1RemSet.inline.hpp
changeset 33786 ac8da6513351
parent 30764 fec48bf5a827
child 34269 7c558c120803
equal deleted inserted replaced
33785:f5e6ef11d24b 33786:ac8da6513351
    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);