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

Commit e2f93bed 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: 0d701c86 am: 46be8054 am: 21ea5e24

Change-Id: If22e7a7873672fbdf88216260e51cf1274baa7e2
parents b44f56f5 21ea5e24
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;
    }