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

Commit b42d33ec authored by Tim Murray's avatar Tim Murray Committed by Calin Juravle
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
(cherry pick from commit 09778808)

Merged-In: Iaceb2b7c34c7b923778a8a603d7b9666ea9a20c4
Change-Id: Iaceb2b7c34c7b923778a8a603d7b9666ea9a20c4
parent f4a6ba88
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -120,8 +120,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