Revert "ART: Conditionally remove loaded-oat-count check"
Bug: 128688902
Bug: 150032912
Test: boots
This reverts commit e912955b98cdc224f2f13455f592b63e96bf5634.
(cherry-picked from commit 3734c2822fe2dc8eaaedbc311f9828ce443b02e6)
Merged-In: I209489f69e4f2b02e7fa93090539575098a28025
Change-Id: I209489f69e4f2b02e7fa93090539575098a28025
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 3a94ef6..1a83372 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1785,7 +1785,7 @@
// Set OnlyUseSystemOatFiles only after boot classpath has been set up.
if (runtime_options.Exists(Opt::OnlyUseSystemOatFiles)) {
- oat_file_manager_->SetOnlyUseSystemOatFiles(/*assert_no_files_loaded=*/ true);
+ oat_file_manager_->SetOnlyUseSystemOatFiles();
}
return true;