OSDN Git Service

Defer top process state for VM
authorRiddle Hsu <riddlehsu@google.com>
Fri, 12 Apr 2019 12:42:05 +0000 (20:42 +0800)
committerRiddle Hsu <riddlehsu@google.com>
Mon, 15 Apr 2019 06:05:51 +0000 (14:05 +0800)
commit50e34009311c849662f7f9fe571ca1e9d4d541b0
tree71eb52ccf7226a873a272a948b96379c22103197
parent4e8e3b0204072a38026ce3955e77428e4dacb646
Defer top process state for VM

The top state will make JIT compilation easier to be triggered.
To reduce the impact of startup time, if there is launching activity,
the top state will be deferred to apply until idle or 1s timeout.
The cold launch time of Contacts, Phone, Calculator are reduced ~15ms.

Test: AppLaunchTest
Bug: 123043091
Change-Id: I8a235e18ea6b508c9aa192445c9ea22d9d12f177
core/java/android/app/ActivityThread.java
core/java/android/app/ClientTransactionHandler.java
core/java/android/app/servertransaction/LaunchActivityItem.java