Skip to content

Commit

Permalink
Comment and assert msg improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rkennke committed Mar 14, 2024
1 parent 079fe89 commit 6949333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/shenandoah/shenandoahFullGC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class ShenandoahPrepareForCompactionObjectClosure : public ObjectClosure {
_compact_point = _to_region->bottom();
}

// Object fits into current region, record new location:
// Object fits into current region, record new location, if object does not move:
assert(_compact_point + obj_size <= _to_region->end(), "must fit");
shenandoah_assert_not_forwarded(nullptr, p);
if (_compact_point != cast_from_oop<HeapWord*>(p)) {
Expand Down Expand Up @@ -866,7 +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");
assert(compact_from != compact_to, "Forwarded object should move");
Copy::aligned_conjoint_words(compact_from, compact_to, size);
oop new_obj = cast_to_oop(compact_to);

Expand Down

0 comments on commit 6949333

Please sign in to comment.