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

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

Merge "Attempt to fix race condition in PooledLambdaImpl." into rvc-dev

parents 583092c9 4d93b189
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -200,8 +200,9 @@ final class PooledLambdaImpl<R> extends OmniFunction<Object,
        try {
            return doInvoke();
        } finally {
            if (isRecycleOnUse()) doRecycle();
            if (!isRecycled()) {
            if (isRecycleOnUse()) {
                doRecycle();
            } else if (!isRecycled()) {
                int argsSize = ArrayUtils.size(mArgs);
                for (int i = 0; i < argsSize; i++) {
                    popArg(i);