summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2023-03-06 17:59:30 +0000
committer Steven Moreland <smoreland@google.com> 2023-03-11 02:32:32 +0000
commit75047ca4df8f6d88e16f131b2a8d54bfa013c2e6 (patch)
tree8d5633b80187572e69402923939635413436f279 /libs/gui/LayerState.cpp
parent69e22e9ea51f01b63e06a621a8c5a977617214fa (diff)
RPC Binder: dropping all binders drops session
Previously, RPC binder was prone to leaks when you have an incoming threadpool. Even if you dropped all references to all binders, you still needed to manually call shutdownAndWait. Now, when you drop the last binder for a connection (after you call getRootBinder the first time), it will automatically shutdown the connection. Previously, when this situation would happen, you could allow a session to call getRootBinder again. However, we don't expect or need this, so we can change the behavior. Bug: 271830568 Test: binderRpcTest (+= 5s) Change-Id: I2033f0f2908e238c0b96060489f72780b51a4bbe
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions