diff options
| author | 2021-11-29 16:51:45 -0800 | |
|---|---|---|
| committer | 2021-12-01 22:36:52 +0000 | |
| commit | 2ad8b26d087bdd92520c2a8d9232b185889d6bd7 (patch) | |
| tree | 3628f8b750a2ca4931b6dd03139c88ad9c2a5204 /compiler/optimizing/optimizing_compiler.h | |
| parent | 4b762130d8c9d7d1697a3a71b7ba90ed311c306f (diff) | |
Suppress vdex madvise calls for metadata access
The vdex madvise calls were made to improve app startup. However, vdex
files can also be loaded in other scenarios, like when system_server
queries the dex optimization status for various packages during app
transitions, or during a global dumpsys. Avoid calling madvise in such
situations, as it incurs unnecessary latency/memory overhead.
A follow-up CL will consolidate the different dex and vdex madvise
paths; much of the dex madvise behavior was conditioned on 512MB
Go devices, and is no longer actively used.
Test: Verified madvise only called on app startup, and not from
    deprecated calls to DexFile opt status queries from system_server.
Bug: 195793112
Change-Id: I715af7f34b31f2e9060f3d3d57a2a3171f01187b
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.h')
0 files changed, 0 insertions, 0 deletions