Revert "Add consistency CHECKs around ArtMethod fields."
This reverts commit 382df393c684c6a5f3856365177da715880d7f08.
Reason for revert: Fails for test BuzzBeepBlinkTest on x86
Bug: 146765723
Change-Id: If86c07959969a831ab5b24681e70c85d3c59c1fd
Test: TH
diff --git a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
index 5c9d226..e7eff0d 100644
--- a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
+++ b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
@@ -2672,10 +2672,6 @@
// We arrive here if we have found an implementation, and it is not in the ImtConflictTable.
// We create a new table with the new pair { interface_method, method }.
DCHECK(conflict_method->IsRuntimeMethod());
-
- // Classes in the boot image should never need to update conflict methods in
- // their IMT.
- CHECK(!Runtime::Current()->GetHeap()->ObjectIsInBootImageSpace(cls.Get()));
ArtMethod* new_conflict_method = Runtime::Current()->GetClassLinker()->AddMethodToConflictTable(
cls.Get(),
conflict_method,
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index 48a51f1..d94e600 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -1019,10 +1019,6 @@
// such methods, we need their entrypoints to be stubs that do the
// initialization check.
header.VisitPackedArtMethods([&](ArtMethod& method) NO_THREAD_SAFETY_ANALYSIS {
- // Methods in the boot image should never have their single
- // implementation flag set (and therefore never have a `data_` pointing
- // to an ArtMethod for single implementation).
- CHECK(method.IsIntrinsic() || !method.HasSingleImplementationFlag());
if (method.IsRuntimeMethod()) {
return;
}