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

Commit 7fd40566 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Add required procLock to freeze state changes

Fixing access to a ProcessCachedOptimizerRecord while
cleaning up on process kill

Test: N/A
Flag: EXEMPT BUGFIX 
Fixes: 440488606
Change-Id: Id5714752c34ade3ed3d105540d52af281069da74
parent 77b5b7c1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1357,8 +1357,10 @@ class ProcessRecord extends ProcessRecordInternal implements WindowProcessListen
                        + "): " + reason, info.uid);
            }
            // Since the process is getting killed, reset the freezable related state.
            synchronized (mProcLock) {
                mOptRecord.setPendingFreeze(false);
                mOptRecord.setFrozen(false);
            }
            if (mPid > 0) {
                mService.mProcessList.noteAppKill(this, reasonCode, subReason, description);
                EventLog.writeEvent(EventLogTags.AM_KILL,