diff options
| author | 2024-05-18 00:23:40 +0100 | |
|---|---|---|
| committer | 2024-05-23 18:07:55 +0000 | |
| commit | e32f9f4ac71ea56deff55a87f65ab849f1c093a8 (patch) | |
| tree | 185a5957c76dc5a7fda11d9e3d3e3a2a9f356991 /compiler/optimizing/loop_optimization.cc | |
| parent | 280e11cc2d15154708926982551749bbff8fb864 (diff) | |
Serialize mutations to the global state of Pre-reboot Dexopt.
There is a global state that Pre-reboot Dexopt mutates, including
mounts and staged files. Before this change, it was up to the caller of
Pre-reboot Dexopt to make sure that different runs don't step on each
other's toes, and there was a shell command that can potentially mess up
with job runs initiated by the job scheduler. This was too fragile.
After this change, Pre-reboot Dexopt only exposes 3 APIs:
PreRebootDexoptJob.onStartJob, PreRebootDexoptJob.onStopJob,
PreRebootDexoptJob.onUpdateReady. The implementation of those APIs makes
sure that mutations to the global state are serialized.
This change paves the way for implementing telemetry, where the stats
becomes a part of the global state and mutations to it need to be
serialized.
Bug: 311377497
Test: atest ArtServiceTests
Change-Id: I5bdef52e15dd465edb3eb63b4b399bdc4860a8d4
Diffstat (limited to 'compiler/optimizing/loop_optimization.cc')
0 files changed, 0 insertions, 0 deletions