summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Zim <zezeozue@google.com> 2022-10-24 11:53:10 +0100
committer Zim <zezeozue@google.com> 2022-11-30 16:46:21 +0000
commit331ef23f78d36d224ca402742cae0fa0237b660a (patch)
tree758342e4b2b38d0715486ab4388b03842c938c17 /services/coverage/java
parent28b621620b6d45938638979b890bcf202d6a3fe2 (diff)
Split attachApplication to more accurately identify app startup
Previously, while handling the attachApplication from an app at startup, the system started the broadcast (and service) AnR timeout countdown as soon as it sent async bindApplication request to the app. This increased the likelyhood of AnRs under CPU contention since some fixed process initialization costs were included in the broadcast handling delay. Now, we split the the attachApplication into 2 phases, there's now a new finishAttachApplication which apps call right before they start executing any custom code. This new call unblocks any pending broadcast/service scheduling and starts the appropriate AnR timeout countdowns. Test: atest AsyncProcessStartTest Bug: 253908737 Change-Id: I61046201281acf6686290d0ab83174ab134d5ef2
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions