8329169: Parallel: Remove unused local variable in MutableSpace::print_on

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2024-03-27 10:29:00 +00:00
parent 4dfcc6df17
commit 788d2bc40c

@ -268,10 +268,8 @@ void MutableSpace::print_on(outputStream* st) const {
void MutableSpace::verify() {
HeapWord* p = bottom();
HeapWord* t = top();
HeapWord* prev_p = nullptr;
while (p < t) {
oopDesc::verify(cast_to_oop(p));
prev_p = p;
p += cast_to_oop(p)->size();
}
guarantee(p == top(), "end of last object must match end of space");