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

Commit 946a1778 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am bb9b4e06: Merge "Fix issue #17609716: Frequent crash in system_server (RT...

am bb9b4e06: Merge "Fix issue #17609716: Frequent crash in system_server (RT restarts)" into lmp-dev

* commit 'bb9b4e06581a12d47d8a3da734dfebd1f26aa51b':
  Fix issue #17609716: Frequent crash in system_server (RT restarts)
parents 074e6156 5d47a093
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2351,7 +2351,7 @@ public final class ActiveServices {
    void serviceTimeout(ProcessRecord proc) {
        String anrMessage = null;

        synchronized(this) {
        synchronized(mAm) {
            if (proc.executingServices.size() == 0 || proc.thread == null) {
                return;
            }
@@ -2647,7 +2647,7 @@ public final class ActiveServices {
            int opti, boolean dumpAll) {
        ArrayList<ServiceRecord> services = new ArrayList<ServiceRecord>();

        synchronized (this) {
        synchronized (mAm) {
            int[] users = mAm.getUsersLocked();
            if ("all".equals(name)) {
                for (int user : users) {
@@ -2721,7 +2721,7 @@ public final class ActiveServices {
    private void dumpService(String prefix, FileDescriptor fd, PrintWriter pw,
            final ServiceRecord r, String[] args, boolean dumpAll) {
        String innerPrefix = prefix + "  ";
        synchronized (this) {
        synchronized (mAm) {
            pw.print(prefix); pw.print("SERVICE ");
                    pw.print(r.shortName); pw.print(" ");
                    pw.print(Integer.toHexString(System.identityHashCode(r)));