Skip to content

Commit

Permalink
8319726: Parallel GC: Re-use object in object-iterator
Browse files Browse the repository at this point in the history
Reviewed-by: ayang, phh
  • Loading branch information
rkennke committed Nov 9, 2023
1 parent 4451a92 commit f57b78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/parallel/mutableSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

1 comment on commit f57b78c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.