We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dbc265 commit ec4163bCopy full SHA for ec4163b
src/hotspot/share/gc/shared/space.cpp
@@ -485,13 +485,7 @@ void ContiguousSpace::object_iterate(ObjectClosure* blk) {
485
void ContiguousSpace::object_iterate_from(HeapWord* mark, ObjectClosure* blk) {
486
while (mark < top()) {
487
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();
+ mark += cast_to_oop(mark)->size();
495
}
496
497
0 commit comments