Skip to content

Commit ec4163b

Browse files
committedMar 20, 2023
8304410: [Lilliput/JDK17] Remove unneeded code in ContiguousSpace::object_iterate_from()
Reviewed-by: shade
1 parent 1dbc265 commit ec4163b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎src/hotspot/share/gc/shared/space.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,7 @@ void ContiguousSpace::object_iterate(ObjectClosure* blk) {
485485
void ContiguousSpace::object_iterate_from(HeapWord* mark, ObjectClosure* blk) {
486486
while (mark < top()) {
487487
blk->do_object(cast_to_oop(mark));
488-
oop obj = cast_to_oop(mark);
489-
#ifdef _LP64
490-
if (obj->is_forwarded() && CompressedKlassPointers::is_null(obj->mark().narrow_klass())) {
491-
obj = obj->forwardee();
492-
}
493-
#endif
494-
mark += obj->size();
488+
mark += cast_to_oop(mark)->size();
495489
}
496490
}
497491

0 commit comments

Comments
 (0)
Please sign in to comment.