src/hotspot/share/gc/g1/g1FullGCCompactionPoint.cpp
changeset 57777 90ead0febf56
parent 49722 a47d1e21b3f1
child 57812 9bb28ccc6106
equal deleted inserted replaced
57774:21dccfac0ec5 57777:90ead0febf56
   114       // forwardee() will return NULL in the compaction phase as well.
   114       // forwardee() will return NULL in the compaction phase as well.
   115       object->init_mark_raw();
   115       object->init_mark_raw();
   116     } else {
   116     } else {
   117       // Make sure object has the correct mark-word set or that it will be
   117       // Make sure object has the correct mark-word set or that it will be
   118       // fixed when restoring the preserved marks.
   118       // fixed when restoring the preserved marks.
   119       assert(object->mark_raw() == markOopDesc::prototype_for_object(object) || // Correct mark
   119       assert(object->mark_raw() == markWord::prototype_for_object(object) || // Correct mark
   120              object->mark_raw()->must_be_preserved(object) || // Will be restored by PreservedMarksSet
   120              object->mark_raw().must_be_preserved(object) || // Will be restored by PreservedMarksSet
   121              (UseBiasedLocking && object->has_bias_pattern_raw()), // Will be restored by BiasedLocking
   121              (UseBiasedLocking && object->has_bias_pattern_raw()), // Will be restored by BiasedLocking
   122              "should have correct prototype obj: " PTR_FORMAT " mark: " PTR_FORMAT " prototype: " PTR_FORMAT,
   122              "should have correct prototype obj: " PTR_FORMAT " mark: " PTR_FORMAT " prototype: " PTR_FORMAT,
   123              p2i(object), p2i(object->mark_raw()), p2i(markOopDesc::prototype_for_object(object)));
   123              p2i(object), object->mark_raw().value(), markWord::prototype_for_object(object).value());
   124     }
   124     }
   125     assert(object->forwardee() == NULL, "should be forwarded to NULL");
   125     assert(object->forwardee() == NULL, "should be forwarded to NULL");
   126   }
   126   }
   127 
   127 
   128   // Update compaction values.
   128   // Update compaction values.