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

Commit df2d81c6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix race condition in OomAdjuster." into rvc-dev am: 2a6add98 am:...

Merge "Fix race condition in OomAdjuster." into rvc-dev am: 2a6add98 am: 863ecc25 am: f1f2b18c

Change-Id: I380c79b964554a7a3385a084cffd3ef68f821a6f
parents 82a8e02d f1f2b18c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -231,7 +231,8 @@ public final class OomAdjuster {
        final ServiceThread adjusterThread =
                new ServiceThread(TAG, TOP_APP_PRIORITY_BOOST, false /* allowIo */);
        adjusterThread.start();
        Process.setThreadGroupAndCpuset(adjusterThread.getThreadId(), THREAD_GROUP_TOP_APP);
        adjusterThread.getThreadHandler().post(() -> Process.setThreadGroupAndCpuset(
                adjusterThread.getThreadId(), THREAD_GROUP_TOP_APP));
        return adjusterThread;
    }