summaryrefslogtreecommitdiff
path: root/disassembler/disassembler_arm64_test.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2022-11-10 10:45:56 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-11-10 12:59:54 +0000
commita55bb9cf0d4bbf0cbad2e5a381d0773d94b865f1 (patch)
tree92671186faec7fe3d4a84a38ec703e972c745ba6 /disassembler/disassembler_arm64_test.cc
parent93749ed023a58b0b7b04a61de514fe6eb6c3d284 (diff)
Clear profile when switching between boot image profile and app profile
A profile is cleared only if its status is `kBadMagic`, `kVersionMismatch`, or `kBadData` (https://cs.android.com/android/platform/superproject/+/master:art/libprofile/profile/profile_compilation_info.cc;l=790-792;drc=486353b0ce7876c059f7f0caded6b0f3b9ecda98). Before this change, when switching between boot image profile and app profile, the profile cannot be cleared because its status was regarded as kMergeError. This CL fixes the issue by changing the status to kVersionMismatch. Bug: 258486155 Test: - 1. adb shell setprop dalvik.vm.profilebootclasspath true 2. adb shell stop && adb shell start 3. adb shell killall -USR1 com.google.android.youtube 4. adb shell profman --dump-only --profile-file=/data/misc/profiles/cur/0/com.google.android.youtube/primary.prof 5. See the boot image profile being properly generated Change-Id: I2bf5d3dcbc5a044907f83521545e18e11c167a25
Diffstat (limited to 'disassembler/disassembler_arm64_test.cc')
0 files changed, 0 insertions, 0 deletions