summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-06-07 12:43:27 -0700
committer Steven Moreland <smoreland@google.com> 2019-06-11 12:02:53 -0700
commit80d23935ff9d2c7ad9490800c163171151b6de20 (patch)
tree5a1a4dfd693e471425b0e5986878e0044838eaca /vulkan/libvulkan/api.cpp
parent49b166e2aeac64ad50d611d402eab84ff4f1450f (diff)
binder: Bp: clear DRs in onLastStrongRef
This way, if unlink is not called, the binder will properly destruct. Currently linkToDeath takes a weakRef, and when BR_DEAD_BINDER is received, userspace binder sends BC_CLEAR_DEATH_NOTIFICATION for each death notification. Then, when it receives BR_CLEAR_DEATH_NOTIFICATION_DONE (maybe later?), it clears the weak ref. Right now, ~BpBinder also clears these. However, by moving this clearing up to onLastStrongRef, forgotten unlinks will no longer cause a cycle (that is only cleared when the service dies). Bug: 134576445 Test: manually linking to death many times without unlinking. Change-Id: Iaf6ce7a65c334805ae2dc146b9f0aa7731a99c0d
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions