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

Commit 2df4e052 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: BpBinder. move handle

note commit 85180c00
offset(BpBinder, mHandle) was exposed as API until mid 2019

but there is no real reason anyone should have used it (only really
needed for IPCThreadState/ProcessState/Parcel), so in order to simplify
some refactoring here, trying to move it to detect any breakages
early.

Bug: 167966510
Test: boot on many Pixel devices
Change-Id: Ie3eb90add4071615a31a947d2fcd3263613a4a48
parent 5a5b85d4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -137,8 +137,8 @@ BpBinder* BpBinder::create(int32_t handle) {
}

BpBinder::BpBinder(int32_t handle, int32_t trackedUid)
    : mHandle(handle)
    , mStability(0)
    : mStability(0)
    , mHandle(handle)
    , mAlive(1)
    , mObitsSent(0)
    , mObituaries(nullptr)
+2 −1
Original line number Diff line number Diff line
@@ -117,11 +117,12 @@ protected:
    virtual bool        onIncStrongAttempted(uint32_t flags, const void* id);

private:
    const   int32_t             mHandle;

    friend ::android::internal::Stability;
            int32_t             mStability;

    const   int32_t             mHandle;

    struct Obituary {
        wp<DeathRecipient> recipient;
        void* cookie;