Only madvise for jank-perceptible processes

The madvise optimization for ART artifacts was introduced to improve
app startup performance. This optimization is less critical for
background process startup, e.g., boot broadcast receivers. Suppress
the madvise calls in these background (non-jank perceptible) cases,
potentially reducing memory and IO pressure from background process
activity.

Bug: 235390330
Test: m + presubmit + boot tests (check traces for madvise activity)
Change-Id: Ib759e9f8ca84ecedd9a37d79970bc15c70116a3a
1 file changed