summaryrefslogtreecommitdiff
path: root/runtime/entrypoints_order_test.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2022-09-22 20:41:18 +0100
committer Jiakai Zhang <jiakaiz@google.com> 2023-03-27 12:57:13 +0000
commit10a6c3ec10d1b4e9af6a096fb0553dda8f2a7641 (patch)
treeb91c46d9610d986b21d5e582306dfbffa333b69d /runtime/entrypoints_order_test.cc
parent6dc2655b1474d137f59dc92c00458f6440a59e03 (diff)
Don't assume that the profile exists.
Before this change, the profile of a primary dex is created by Package Manager on app installation, the profile of a secondary dex is created by DexLoadReporter on dex load, and the runtime assumes that the profile always exists. After this change, the runtime can create the profile if it doesn't exist. This has the following benefits: - When ART Services wants to clear a profile, it can simply delete it, as opposed to the installd's approach: acquiring a flock and trucating the file. This reduces the risk of artd encountering a dead lock. - We can eventually make PM and DexLoadReporter simpler by removing the code that creates profiles. Bug: 248318911 Test: art/test.py -b -r --host -t 595 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:03379d9b00d068e2a9d9ab0e34cfe630343f22ce) Merged-In: I929e3856f02f498ed203d1af0e7859337a82669a Change-Id: I929e3856f02f498ed203d1af0e7859337a82669a
Diffstat (limited to 'runtime/entrypoints_order_test.cc')
0 files changed, 0 insertions, 0 deletions