ANDROID: rust_binder: reduce counts in NodeRef::absorb
Rust Binder would in some cases avoid decrementing refcounts when it has
multiple counts on the same node to avoid taking the lock unnecessarily.
However, servicemanager relies on the exact value of the refcount to
determine whether lazy services should be removed, so add logic to
delete these duplicate refcounts.
No need to schedule the node, since we never decrement any counts all
the way to zero in this scenario.
Bug: 427655909
Change-Id: I4383cadd7d9253e45aa542b7cbbab5db0094bd84
Signed-off-by:
Alice Ryhl <aliceryhl@google.com>
Loading
Please sign in to comment