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

Commit ac14ab4a authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Merge "RPC Binder: always log ENOMEM in guest" into main

parents ba04b315 37adb719
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1184,6 +1184,14 @@ processTransactInternalTailCall:
        replyStatus = status;
    }

    // b/404210068 - we see this case with no logs in the VM. Make sure we always log in this
    // case, so if the bug repros again, we prove that there are missing logs. Try the negative
    // as well to be extra careful. TODO - delete this code anytime in the future.
    if (replyStatus == NO_MEMORY || replyStatus == ENOMEM) {
        ALOGE("Replying to transaction code: %" PRIo32 " error: %s.", transaction->code,
              statusToString(replyStatus).c_str());
    }

    auto* rpcFields = reply.maybeRpcFields();
    LOG_ALWAYS_FATAL_IF(rpcFields == nullptr);