diff options
author | 2019-11-11 14:22:00 -0800 | |
---|---|---|
committer | 2019-11-11 14:33:19 -0800 | |
commit | f1b18facd1edd6c8652c42085c5432c878507c8e (patch) | |
tree | 856465341f025debf8a526490c7f00cee06d3694 /runtime/class_linker_test.cc | |
parent | 2462789806df0281c52fa9bb60fa37fe3ff606b6 (diff) |
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
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r-- | runtime/class_linker_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index 6299e3f7f2..0969b1c50c 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -479,6 +479,7 @@ struct CheckOffsets { 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; |