8319726: Parallel GC: Re-use object in object-iterator

Reviewed-by: ayang, phh
This commit is contained in:
Roman Kennke 2023-11-09 13:31:00 +00:00
parent 4451a927bc
commit f57b78c9c3

@ -247,7 +247,7 @@ void MutableSpace::object_iterate(ObjectClosure* cl) {
assert(obj->forwardee() != obj, "must not be self-forwarded");
}
#endif
p += cast_to_oop(p)->size();
p += obj->size();
}
}