summaryrefslogtreecommitdiff
path: root/disassembler/disassembler.h
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2021-12-10 13:51:12 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-01-17 14:34:35 +0000
commit653cf4144e2a43ade887648f05958af84715d63c (patch)
tree74cb69d43c1eef9cfb9bb52d90c3187eece08603 /disassembler/disassembler.h
parent71987f90de73092bf55dbe229589a4379a2f71fb (diff)
Check oat files of boot images.
Before this change, oat files of boot images were not checked when we load boot images. We need this check to ensure that the boot images are up-to-date, especially when we move the primary boot image out of the ART APEX. This check is performed at an early stage, rather than when the oat files are actually loaded for execution, in order to determine whether the runtime should re-compile the boot image or not. On boot, the check itself costs ~100ms for the primary instruction set. However, the overall boot time regression is neglectable (<10ms). This is probably because the cost is amortized later when oat files are loaded for execution, due to caches. The boot time impact is tested for 10 times on a high-end device. Bug: 209963183 Test: All ART gtests and run-tests in Presubmits. (cherry picked from commit 834295c98be7ce5112c1a2ee30c9426f04e8617a) Merged-In: I5c6f3edd633fd980c51c00d02b813659996e85dd Change-Id: I1e85d46f11bb4eb14214f6aa4bc0f79efacfc714
Diffstat (limited to 'disassembler/disassembler.h')
0 files changed, 0 insertions, 0 deletions