--- old/src/hotspot/share/gc/g1/g1FullGCCompactionPoint.cpp 2019-08-20 10:52:33.260864466 +0200 +++ new/src/hotspot/share/gc/g1/g1FullGCCompactionPoint.cpp 2019-08-20 10:52:33.040861074 +0200 @@ -116,11 +116,11 @@ } else { // Make sure object has the correct mark-word set or that it will be // fixed when restoring the preserved marks. - assert(object->mark_raw() == markWord::prototype_for_object(object) || // Correct mark - object->mark_raw().must_be_preserved(object) || // Will be restored by PreservedMarksSet + assert(object->mark_raw() == markWord::prototype_for_klass(object->klass()) || // Correct mark + object->mark_must_be_preserved() || // Will be restored by PreservedMarksSet (UseBiasedLocking && object->has_bias_pattern_raw()), // Will be restored by BiasedLocking "should have correct prototype obj: " PTR_FORMAT " mark: " PTR_FORMAT " prototype: " PTR_FORMAT, - p2i(object), object->mark_raw().value(), markWord::prototype_for_object(object).value()); + p2i(object), object->mark_raw().value(), markWord::prototype_for_klass(object->klass()).value()); } assert(object->forwardee() == NULL, "should be forwarded to NULL"); }