< prev index next >

src/hotspot/share/gc/g1/g1FullGCOopClosures.inline.hpp

Print this page
*** 78,14 ***
    }
  
    oop forwardee = obj->forwardee();
    if (forwardee == NULL) {
      // Not forwarded, return current reference.
!     assert(obj->mark() == markWord::prototype() || // Correct mark
             obj->mark_must_be_preserved(), // Will be restored by PreservedMarksSet
             "Must have correct prototype or be preserved, obj: " PTR_FORMAT ", mark: " PTR_FORMAT ", prototype: " PTR_FORMAT,
!            p2i(obj), obj->mark().value(), markWord::prototype().value());
      return;
    }
  
    // Forwarded, just update.
    assert(G1CollectedHeap::heap()->is_in_reserved(forwardee), "should be in object space");
--- 78,14 ---
    }
  
    oop forwardee = obj->forwardee();
    if (forwardee == NULL) {
      // Not forwarded, return current reference.
!     assert(obj->mark() == obj->klass()->prototype_header() || // Correct mark
             obj->mark_must_be_preserved(), // Will be restored by PreservedMarksSet
             "Must have correct prototype or be preserved, obj: " PTR_FORMAT ", mark: " PTR_FORMAT ", prototype: " PTR_FORMAT,
!            p2i(obj), obj->mark().value(), obj->klass()->prototype_header().value());
      return;
    }
  
    // Forwarded, just update.
    assert(G1CollectedHeap::heap()->is_in_reserved(forwardee), "should be in object space");
< prev index next >