Skip to content

Commit f57b78c

Browse files
committed
8319726: Parallel GC: Re-use object in object-iterator
Reviewed-by: ayang, phh
1 parent 4451a92 commit f57b78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/parallel/mutableSpace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ void MutableSpace::object_iterate(ObjectClosure* cl) {
247247
assert(obj->forwardee() != obj, "must not be self-forwarded");
248248
}
249249
#endif
250-
p += cast_to_oop(p)->size();
250+
p += obj->size();
251251
}
252252
}
253253

0 commit comments

Comments
 (0)