Merge "Use ActivityManagerService global lock in dumpHeap" into sc-dev am: a08dcc7ccb

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

Change-Id: I1f3e382337c64746a85c82722e21cd9f056457b0
This commit is contained in:
Jing Ji
2021-05-04 18:32:47 +00:00
committed by Automerger Merge Worker

View File

@@ -14831,7 +14831,7 @@ public class ActivityManagerService extends IActivityManager.Stub
throw new IllegalArgumentException("null fd");
}
synchronized (mProcLock) {
synchronized (this) {
ProcessRecord proc = findProcessLOSP(process, userId, "dumpHeap");
IApplicationThread thread;
if (proc == null || (thread = proc.getThread()) == null) {