summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2021-11-11 15:52:00 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2021-11-17 10:39:46 +0000
commit432d6eba399e25332af18c2479d8557e44abef54 (patch)
treea44282ab89c4ebbab1501f92b31217f1aaf9ad27 /compiler/optimizing/optimizing_compiler.cc
parent5a65d03bebba368639fb4c99041f7ee05741b1b3 (diff)
Fix odrefresh partial compilation.
When some artifacts are newly generated while some existing artifacts are kept, odsign will try to sign all the artifacts, including the existing ones. The signing will fail because the signatures for the existing artifacts already exist in fs-verity, and odsign will remove all artifacts when the signing fails. This CL works around the problem by reading each existing artifact into the memory, deleting it, and writing it back, which essentially removes them from fs-verity so that odsign can sign them again as if they are newly generated. Note: This CL add a new dependency "libc++fs" to the ART module, which increases the size of the ART APEX by 40KB (or 0.1%). Bug: 205276874 Test: atest odsign_e2e_tests Change-Id: I0003c8502977d74c6dadf958b2e7e558220bec81
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
0 files changed, 0 insertions, 0 deletions