Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09778808 authored by Tim Murray's avatar Tim Murray
Browse files

BackgroundDexOptService: defer post-boot job further

Delay the post-boot dexopt job to avoid mmap_sem contention caused by
mapping dex files.

Test: boot, dexopt starts later
Bug: 161866124

Change-Id: Iaceb2b7c34c7b923778a8a603d7b9666ea9a20c4
parent a9318154
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -118,8 +118,8 @@ public class BackgroundDexOptService extends JobService {
        // Schedule a one-off job which scans installed packages and updates
        // out-of-date oat files.
        js.schedule(new JobInfo.Builder(JOB_POST_BOOT_UPDATE, sDexoptServiceName)
                    .setMinimumLatency(TimeUnit.MINUTES.toMillis(1))
                    .setOverrideDeadline(TimeUnit.MINUTES.toMillis(1))
                    .setMinimumLatency(TimeUnit.MINUTES.toMillis(10))
                    .setOverrideDeadline(TimeUnit.MINUTES.toMillis(60))
                    .build());

        // Schedule a daily job which scans installed packages and compiles