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

Commit 330450c2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "freezer: disable on "am dumpheap <pid>"" into rvc-dev

parents 2c1f53ad d1b29e83
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -18376,7 +18376,18 @@ public class ActivityManagerService extends IActivityManager.Stub
                    }
                }
                proc.thread.dumpHeap(managed, mallocInfo, runGc, path, fd, finishCallback);
                Process.enableFreezer(false);
                final RemoteCallback intermediateCallback = new RemoteCallback(
                        new RemoteCallback.OnResultListener() {
                        @Override
                        public void onResult(Bundle result) {
                            finishCallback.sendResult(result);
                            Process.enableFreezer(true);
                        }
                    }, null);
                proc.thread.dumpHeap(managed, mallocInfo, runGc, path, fd, intermediateCallback);
                fd = null;
                return true;
            }