< prev index next >

src/hotspot/share/gc/g1/g1EvacFailure.cpp

Print this page
*** 92,14 ***
        // explicitly and all objects in the CSet are considered
        // (implicitly) live. So, we won't mark them explicitly and
        // we'll leave them over NTAMS.
        _cm->mark_in_next_bitmap(_worker_id, _hr, obj);
      }
      size_t obj_size = obj->size();
  
      _marked_words += obj_size;
-     PreservedMarks::init_forwarded_mark(obj);
  
      HeapWord* obj_end = obj_addr + obj_size;
      _last_forwarded_object_end = obj_end;
      _hr->alloc_block_in_bot(obj_addr, obj_end);
    }
--- 92,14 ---
        // explicitly and all objects in the CSet are considered
        // (implicitly) live. So, we won't mark them explicitly and
        // we'll leave them over NTAMS.
        _cm->mark_in_next_bitmap(_worker_id, _hr, obj);
      }
+     PreservedMarks::init_forwarded_mark(obj);
      size_t obj_size = obj->size();
  
      _marked_words += obj_size;
  
      HeapWord* obj_end = obj_addr + obj_size;
      _last_forwarded_object_end = obj_end;
      _hr->alloc_block_in_bot(obj_addr, obj_end);
    }
< prev index next >