diff options
| author | 2020-01-22 10:57:09 -0800 | |
|---|---|---|
| committer | 2020-01-22 11:02:02 -0800 | |
| commit | ab6a254fb9ecdf382acbd641fe68ea4fd35e2c02 (patch) | |
| tree | 3cf9f62bbc0c7d0727acbd2d2e08197ca0644665 | |
| parent | 3dd4c345b64cb58e613143e3ef45f1444662e7b4 (diff) | |
Move the persistent property set to IoThread
The persistent property set caused a ~5.61ms regression in
the system_server SuccessiveBootTest. Moving it to IoThread.
Bug: 148098870
Test: atest google/perf/boottime/boottime-test
Change-Id: I737a6c5390d292b313f4436c83ec27a546c3cf0b
| -rw-r--r-- | services/core/java/com/android/server/am/AppExitInfoTracker.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/am/AppExitInfoTracker.java b/services/core/java/com/android/server/am/AppExitInfoTracker.java index 6e135d65f127..bab133f58c11 100644 --- a/services/core/java/com/android/server/am/AppExitInfoTracker.java +++ b/services/core/java/com/android/server/am/AppExitInfoTracker.java @@ -189,12 +189,14 @@ public final class AppExitInfoTracker { } void onSystemReady() { - // Read the sysprop set by lmkd and set this to persist so app could read it. - SystemProperties.set("persist.sys.lmk.reportkills", - Boolean.toString(SystemProperties.getBoolean("sys.lmk.reportkills", false))); registerForUserRemoval(); registerForPackageRemoval(); - IoThread.getHandler().post(this::loadExistingProcessExitInfo); + IoThread.getHandler().post(() -> { + // Read the sysprop set by lmkd and set this to persist so app could read it. + SystemProperties.set("persist.sys.lmk.reportkills", + Boolean.toString(SystemProperties.getBoolean("sys.lmk.reportkills", false))); + loadExistingProcessExitInfo(); + }); } @GuardedBy("mService") |