template <ReadBarrierOption kReadBarrierOption> bool Verification::IsValidClassUnchecked(mirror::Class* klass) const {
mirror::Class* k1 = klass->GetClass<kVerifyNone, kReadBarrierOption>(); if (!IsValidHeapObjectAddress(k1)) { returnfalse;
} // `k1` should be class class, take the class again to verify. // Note that this check may not be valid for the no image space // since the class class might move around from moving GC.
mirror::Class* k2 = k1->GetClass<kVerifyNone, kReadBarrierOption>(); if (!IsValidHeapObjectAddress(k2)) { returnfalse;
} return k1 == k2;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.