Skip to content

Commit 4212ea2

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Add comment explaining BpBinder::linkToDeath invalid operation" into main
2 parents 7827597 + 7ba4378 commit 4212ea2

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)