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

Commit b84297d9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes I914fa057,I89ad4e2e

* changes:
  libbinder: emphasize kernel state objs
  libbinder: alternative in calling guard error
parents d7da6a77 891e445d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -736,7 +736,8 @@ status_t RpcState::processCommand(
    IPCThreadState* kernelBinderState = IPCThreadState::selfOrNull();
    IPCThreadState::SpGuard spGuard{
            .address = __builtin_frame_address(0),
            .context = "processing binder RPC command",
            .context = "processing binder RPC command (where RpcServer::setPerSessionRootObject is "
                       "used to distinguish callers)",
    };
    const IPCThreadState::SpGuard* origGuard;
    if (kernelBinderState != nullptr) {
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,10 @@ typedef int uid_t;
// ---------------------------------------------------------------------------
namespace android {

/**
 * Kernel binder thread state. All operations here refer to kernel binder. This
 * object is allocated per-thread.
 */
class IPCThreadState
{
public:
+4 −0
Original line number Diff line number Diff line
@@ -29,6 +29,10 @@ namespace android {

class IPCThreadState;

/**
 * Kernel binder process state. All operations here refer to kernel binder. This
 * object is allocated per process.
 */
class ProcessState : public virtual RefBase {
public:
    static sp<ProcessState> self();