< prev index next > src/hotspot/share/gc/g1/g1OopClosures.inline.hpp
Print this page
const G1HeapRegionAttr state = _g1h->region_attr(obj);
if (state.is_in_cset()) {
oop forwardee;
markWord m = obj->mark();
if (m.is_forwarded()) {
! forwardee = m.forwardee();
} else {
forwardee = _par_scan_state->copy_to_survivor_space(state, obj, m);
}
assert(forwardee != nullptr, "forwardee should not be null");
RawAccess<IS_NOT_NULL>::oop_store(p, forwardee);
const G1HeapRegionAttr state = _g1h->region_attr(obj);
if (state.is_in_cset()) {
oop forwardee;
markWord m = obj->mark();
if (m.is_forwarded()) {
! forwardee = obj->forwardee(m);
} else {
forwardee = _par_scan_state->copy_to_survivor_space(state, obj, m);
}
assert(forwardee != nullptr, "forwardee should not be null");
RawAccess<IS_NOT_NULL>::oop_store(p, forwardee);
< prev index next >