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

Commit c21baf95 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...

Merge "libbinder: RPC simplify flush commands" am: 0204dcc5 am: b910fdca am: 248e989b am: 6b3db3de am: 5b1d340c

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

Change-Id: Iab53f896fc1b543bf9e7c11de8e17801f8a63539
parents 0abfd1f2 5b1d340c
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(),