Skip to content

Commit

Permalink
8328107: Shenandoah/C2: TestVerifyLoopOptimizations test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rkennke committed Mar 13, 2024
1 parent a4a5196 commit 079fe89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/hotspot/share/gc/shenandoah/shenandoahFullGC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,10 @@ class ShenandoahPrepareForCompactionObjectClosure : public ObjectClosure {
// Object fits into current region, record new location:
assert(_compact_point + obj_size <= _to_region->end(), "must fit");
shenandoah_assert_not_forwarded(nullptr, p);
_preserved_marks->push_if_necessary(p, p->mark());
p->forward_to(cast_to_oop(_compact_point));
if (_compact_point != cast_from_oop<HeapWord*>(p)) {
_preserved_marks->push_if_necessary(p, p->mark());
p->forward_to(cast_to_oop(_compact_point));
}
_compact_point += obj_size;
}
};
Expand Down Expand Up @@ -864,6 +866,7 @@ class ShenandoahCompactObjectsClosure : public ObjectClosure {
if (p->is_forwarded()) {
HeapWord* compact_from = cast_from_oop<HeapWord*>(p);
HeapWord* compact_to = cast_from_oop<HeapWord*>(p->forwardee());
assert(compact_from != compact_to, "forwarded object doesn't move");
Copy::aligned_conjoint_words(compact_from, compact_to, size);
oop new_obj = cast_to_oop(compact_to);

Expand Down

0 comments on commit 079fe89

Please sign in to comment.