summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2023-05-05 12:53:34 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2023-05-09 09:12:15 +0000
commit441e3bf277308722aec934e7984d35309074d1a7 (patch)
treef7c666cb02bea636c312acc1b4962c964b579a4f /runtime/class_linker.cc
parent429b584f59a317803ddb93d237a954c85b66dda4 (diff)
Cleanup logic on madvising vdex/dex files.
- Be consistent between dex in .vdex file and uncompressed dex file in APK - Remove old and duplicated madvise logic for low ram. Test: test.py Bug: 278785544 Bug: 196052575 Bug: 178853586 Change-Id: I0b9cbf3273091cf7cbd8add9966ba21f6ac93d45
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 4ef00615d1..19f79481f5 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -1405,9 +1405,6 @@ bool ClassLinker::InitFromBootImage(std::string* error_msg) {
error_msg)) {
return false;
}
- for (const std::unique_ptr<const DexFile>& dex_file : boot_dex_files_) {
- OatDexFile::MadviseDexFileAtLoad(*dex_file);
- }
InitializeObjectVirtualMethodHashes(GetClassRoot<mirror::Object>(this),
image_pointer_size_,
ArrayRef<uint32_t>(object_virtual_method_hashes_));