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

Commit 175d114e authored by Jing Ji's avatar Jing Ji
Browse files

Use ActivityManagerService global lock in dumpHeap

Bug: 187013484
Test: adb shell am dumpheap
Change-Id: I1d3d8016f228c1ee9aa82edee7550ba3e50843ae
parent 748c3a80
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -14831,7 +14831,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                throw new IllegalArgumentException("null fd");
                throw new IllegalArgumentException("null fd");
            }
            }
            synchronized (mProcLock) {
            synchronized (this) {
                ProcessRecord proc = findProcessLOSP(process, userId, "dumpHeap");
                ProcessRecord proc = findProcessLOSP(process, userId, "dumpHeap");
                IApplicationThread thread;
                IApplicationThread thread;
                if (proc == null || (thread = proc.getThread()) == null) {
                if (proc == null || (thread = proc.getThread()) == null) {