Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbinder: avoid global mutex every binder call
We can't get rid of a mutex (or similar) for the rarer ProcessState::selfOrNull access, but for ProcessState::self() accesses, which happen at least once every binder call, we can use the very fast once flags. Bug: 161336582 Test: boots Change-Id: I66fee6be0260f59f80a85328228776de7e68c7fb
- Loading branch information
1 parent
f9fe1f1
commit 6691ac1
Showing
4 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters