File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -490,12 +490,11 @@ oop G1ParScanThreadState::do_copy_to_survivor_space(G1HeapRegionAttr const regio
490
490
age++;
491
491
}
492
492
if (old_mark.has_displaced_mark_helper ()) {
493
- // In this case, we have to install the mark word first,
494
- // otherwise obj looks to be forwarded (the old mark word,
495
- // which contains the forward pointer, was copied)
496
- obj->set_mark (old_mark);
493
+ // In this case, we have to install the old mark word containing the
494
+ // displacement tag, and update the age in the displaced mark word.
497
495
markWord new_mark = old_mark.displaced_mark_helper ().set_age (age);
498
496
old_mark.set_displaced_mark_helper (new_mark);
497
+ obj->set_mark (old_mark);
499
498
} else {
500
499
obj->set_mark (old_mark.set_age (age));
501
500
}
You can’t perform that action at this time.
0 commit comments