Skip to content

Commit 93806e1

Browse files
Treehugger Robotandroid-build-merge-worker-robot
authored andcommitted
Merge "Add comment explaining BpBinder::linkToDeath invalid operation" into main am: 4212ea2
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3524953 Change-Id: I29e004d9d7be74244a6486430f61e88231304734 Signed-off-by: Automerger Merge Worker <[email protected]>
2 parents 6c65610 + 4212ea2 commit 93806e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/binder/Binder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ status_t BBinder::linkToDeath(
445445
const sp<DeathRecipient>& /*recipient*/, void* /*cookie*/,
446446
uint32_t /*flags*/)
447447
{
448+
// BBinder::linkToDeath is invalid because this process owns this binder.
449+
// The DeathRecipient is called on BpBinders when the process owning the
450+
// binder node dies.
448451
return INVALID_OPERATION;
449452
}
450453

0 commit comments

Comments
 (0)