< prev index next >

src/hotspot/share/gc/z/zForwarding.cpp

Print this page

        

@@ -67,15 +67,10 @@
     guarantee(entry.from_index() < _page->object_max_count(), "Invalid from index");
 
     // Check for duplicates
     for (ZForwardingCursor j = i + 1; j < _entries.length(); j++) {
       const ZForwardingEntry other = at(&j);
-      if (!other.populated()) {
-        // Skip empty entries
-        continue;
-      }
-
       guarantee(entry.from_index() != other.from_index(), "Duplicate from");
       guarantee(entry.to_offset() != other.to_offset(), "Duplicate to");
     }
 
     live_objects++;
< prev index next >