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

Commit 782e04df authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Attempt to fix race condition in PooledLambdaImpl." into rvc-dev am: 18dd476b

Change-Id: I9c0120a8da010facdffa90a98b77c2582c54ab6b
parents c525fcfb 18dd476b
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);