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

Commit 64b12ae4 authored by Jing Ji's avatar Jing Ji Committed by Automerger Merge Worker
Browse files

Merge "Relax the lock in getMemoryStateForProcesses" into sc-dev am: 286f70df

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15159302

Change-Id: I0997fd439275aa2abcea8a7163ad15331484e6f8
parents abdab029 286f70df
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -15556,7 +15556,6 @@ public class ActivityManagerService extends IActivityManager.Stub
        @Override
        public List<ProcessMemoryState> getMemoryStateForProcesses() {
            List<ProcessMemoryState> processMemoryStates = new ArrayList<>();
            synchronized (mProcLock) {
            synchronized (mPidsSelfLocked) {
                for (int i = 0, size = mPidsSelfLocked.size(); i < size; i++) {
                    final ProcessRecord r = mPidsSelfLocked.valueAt(i);
@@ -15564,7 +15563,6 @@ public class ActivityManagerService extends IActivityManager.Stub
                            r.uid, r.getPid(), r.processName, r.mState.getCurAdj()));
                }
            }
            }
            return processMemoryStates;
        }