diff options
author | 2025-03-07 17:13:16 +0000 | |
---|---|---|
committer | 2025-03-11 06:45:45 -0700 | |
commit | 4370b86853f0fdf16f0e957365c6b600e5b32fe2 (patch) | |
tree | a9e3bc73df56cf8f9270b56688ede9d0ac06417e /compiler/common_compiler_test.cc | |
parent | a6a75dba00303a88642a1c57ad2ed390797adf47 (diff) |
Ensure oat checksum determinism across hosts and devices.
For Cloud Compilation, we need to enable hosts to generate a boot image
that has exactly the same checksum as generated on device. In other
words, we need to make the oat checksum deterministic across hosts and
devices.
To achieve that, when writing the oat header, the non-deterministic
fields are padded to their length limits and excluded from the oat
checksum computation.
Bug: 372868052
Test: m test-art-host-gtest
Test: Generate a boot image on host. See the checksum being identical to
the one on device.
Change-Id: I9f73a28b349b673c25909b61a0c7ae8cf883c014
Diffstat (limited to 'compiler/common_compiler_test.cc')
0 files changed, 0 insertions, 0 deletions