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

Commit e21e54e6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Disable the freezer while we're collecting binder interface...

Merge "Disable the freezer while we're collecting binder interface descriptors." into rvc-dev am: 2c1f53ad am: 62f5ea6f am: 6d96f081

Change-Id: I3eb5abe86821468a59b413441f526155d8beca31
parents c3b539af 6d96f081
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -251,6 +251,11 @@ public final class BinderProxy implements IBinder {
                    }
                }
            }
            // For gathering this debug output, we're making synchronous binder calls
            // out of system_server to all processes hosting binder objects it holds a reference to;
            // since some of those processes might be frozen, we don't want to block here
            // forever. Disable the freezer.
            Process.enableFreezer(false);
            for (WeakReference<BinderProxy> weakRef : proxiesToQuery) {
                BinderProxy bp = weakRef.get();
                String key;
@@ -273,6 +278,7 @@ public final class BinderProxy implements IBinder {
                    counts.put(key, i + 1);
                }
            }
            Process.enableFreezer(true);
            Map.Entry<String, Integer>[] sorted = counts.entrySet().toArray(
                    new Map.Entry[counts.size()]);