Merge "Fix race condition in OomAdjuster." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2a6add988c
@@ -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