Use explicit list of mirrored class when checking CanRedefine
We were assuming that the ClassRoots contained all the mirror'd
classes but this is not the case. Instead we should use an explicit
list of the mirror'd classes.
Test: ./test.py --host
Test: m test-art-host-gtest-class_linker_test64
Bug: 134162467
Change-Id: Idd4c258ee0134e42afd0175b948123ea052704e1
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc
index 6299e3f..0969b1c 100644
--- a/runtime/class_linker_test.cc
+++ b/runtime/class_linker_test.cc
@@ -479,6 +479,7 @@
ObjPtr<mirror::Class> klass =
Runtime::Current()->GetClassLinker()->FindSystemClass(self, class_descriptor.c_str());
CHECK(klass != nullptr) << class_descriptor;
+ CHECK(klass->IsMirrored()) << class_descriptor;
bool error = false;