summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 880addb354..224b928d01 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -2098,6 +2098,10 @@ bool ClassLinker::AddImageSpace(gc::space::ImageSpace* space,
*error_msg = "Checksums count does not match";
return false;
}
+ if (oat_header->IsConcurrentCopying() != gUseReadBarrier) {
+ *error_msg = "GCs do not match";
+ return false;
+ }
// Check if the dex checksums match the dex files that we just loaded.
uint32_t* checksums = reinterpret_cast<uint32_t*>(