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

Commit fb912e0b authored by Andreas Gampe's avatar Andreas Gampe Committed by Android (Google) Code Review
Browse files

Merge "Frameworks/base: Avoid useless array allocation"

parents 6baa7071 556718db
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -11772,13 +11772,11 @@ public final class ActivityManagerService extends ActivityManagerNative
        boolean killed = false;
        synchronized (mPidsSelfLocked) {
            int[] types = new int[pids.length];
            int worstType = 0;
            for (int i=0; i<pids.length; i++) {
                ProcessRecord proc = mPidsSelfLocked.get(pids[i]);
                if (proc != null) {
                    int type = proc.setAdj;
                    types[i] = type;
                    if (type > worstType) {
                        worstType = type;
                    }