Commit d47caa0b authored by Alice Ryhl's avatar Alice Ryhl Committed by Matthew Maurer
Browse files

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: default avatarAlice Ryhl <aliceryhl@google.com>
parent bc31899f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment