summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2025-02-14 17:14:46 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-02-14 11:44:35 -0800
commit560dd5f2bdfe014ef2c25de4ccb8ce6d9151cddd (patch)
treef57e3d1c39eccefe969196bbb472a592e8acd372 /runtime/class_linker.cc
parentac3a3207c6ae6bdf92253e1dc408a4b048ba6354 (diff)
Fix OatFileAssistant non-determinism in choosing best oat files.
https://r.android.com/3474808 added a file existence check in GetBestInfo. This introduced a potential inconsistency between two calls to GetBestInfo because the file existence may change between the two calls (e.g., a new file is generated by bg-dexopt during that period). This CL fixes it by only guarding the logging by the file existence check. In addition, because `IsUseable` is no longer guarded by the file existence check, we need to add a file existence check in ZipArchive::Open, to prevent `OpenArchive` from logging unnecessary warnings on the absence of DM files. Bug: 396649891 Bug: 377474232 Bug: 345762752 Test: adb shell pm art dump Change-Id: I5a7079bed76fb1d89bfaa791bbdd14bb6981d563
Diffstat (limited to 'runtime/class_linker.cc')
0 files changed, 0 insertions, 0 deletions