Merge "Fix race condition in OomAdjuster." into rvc-dev am: 2a6add988c
Change-Id: I797b6875fe3b4044e5e9c9961fc7b22323d9bfed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user