Merge "Fix NPE when scheduling transaction for null client" into qt-dev

am: ec4c269f94

Change-Id: I404d1bcbd00a6db869d92e4ca4af1b05d7a3d7b9
This commit is contained in:
Louis Chang
2019-04-23 09:11:55 -07:00
committed by android-build-merger

View File

@@ -98,7 +98,7 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
private final ActivityTaskManagerService mAtm;
// The actual proc... may be null only if 'persistent' is true (in which case we are in the
// process of launching the app)
private volatile IApplicationThread mThread;
private IApplicationThread mThread;
// Currently desired scheduling class
private volatile int mCurSchedGroup;
// Currently computed process state
@@ -192,8 +192,11 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
return mPid;
}
@HotPath(caller = HotPath.PROCESS_CHANGE)
public void setThread(IApplicationThread thread) {
mThread = thread;
synchronized (mAtm.mGlobalLockWithoutBoost) {
mThread = thread;
}
}
IApplicationThread getThread() {