< prev index next >

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

Print this page
@@ -110,14 +110,14 @@
        // since it will be restored by preserved marks.
        object->init_mark();
      } else {
        // Make sure object has the correct mark-word set or that it will be
        // fixed when restoring the preserved marks.
-       assert(object->mark() == markWord::prototype() || // Correct mark
+       assert(object->mark() == object->klass()->prototype_header() || // Correct mark
               object->mark_must_be_preserved(), // Will be restored by PreservedMarksSet
               "should have correct prototype obj: " PTR_FORMAT " mark: " PTR_FORMAT " prototype: " PTR_FORMAT,
-              p2i(object), object->mark().value(), markWord::prototype().value());
+              p2i(object), object->mark().value(), object->klass()->prototype_header().value());
      }
      assert(object->forwardee() == NULL, "should be forwarded to NULL");
    }
  
    // Update compaction values.
< prev index next >