Merge "Fix NPE when scheduling transaction for null client" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ec4c269f94
@@ -98,7 +98,7 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
|
|||||||
private final ActivityTaskManagerService mAtm;
|
private final ActivityTaskManagerService mAtm;
|
||||||
// The actual proc... may be null only if 'persistent' is true (in which case we are in the
|
// The actual proc... may be null only if 'persistent' is true (in which case we are in the
|
||||||
// process of launching the app)
|
// process of launching the app)
|
||||||
private volatile IApplicationThread mThread;
|
private IApplicationThread mThread;
|
||||||
// Currently desired scheduling class
|
// Currently desired scheduling class
|
||||||
private volatile int mCurSchedGroup;
|
private volatile int mCurSchedGroup;
|
||||||
// Currently computed process state
|
// Currently computed process state
|
||||||
@@ -192,8 +192,11 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
|
|||||||
return mPid;
|
return mPid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@HotPath(caller = HotPath.PROCESS_CHANGE)
|
||||||
public void setThread(IApplicationThread thread) {
|
public void setThread(IApplicationThread thread) {
|
||||||
mThread = thread;
|
synchronized (mAtm.mGlobalLockWithoutBoost) {
|
||||||
|
mThread = thread;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IApplicationThread getThread() {
|
IApplicationThread getThread() {
|
||||||
|
|||||||
Reference in New Issue
Block a user