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

Commit 248e989b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libbinder: RPC simplify flush commands" am: 0204dcc5 am: b910fdca

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1842873

Change-Id: Ie6b7c8bc2a77b990da1f89b0b3a2cdb94ba4131b
parents d4d6ff53 b910fdca
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -885,12 +885,6 @@ processTransactInternalTailCall:
        }
    }

    // Binder refs are flushed for oneway calls only after all calls which are
    // built up are executed. Otherwise, they fill up the binder buffer.
    if (addr != 0 && replyStatus == OK && !oneway) {
        replyStatus = flushExcessBinderRefs(session, addr, target);
    }

    if (oneway) {
        if (replyStatus != OK) {
            ALOGW("Oneway call failed with error: %d", replyStatus);
@@ -950,6 +944,12 @@ processTransactInternalTailCall:
        return OK;
    }

    // Binder refs are flushed for oneway calls only after all calls which are
    // built up are executed. Otherwise, they fill up the binder buffer.
    if (addr != 0 && replyStatus == OK) {
        replyStatus = flushExcessBinderRefs(session, addr, target);
    }

    LOG_ALWAYS_FATAL_IF(std::numeric_limits<int32_t>::max() - sizeof(RpcWireHeader) -
                                        sizeof(RpcWireReply) <
                                reply.dataSize(),