summaryrefslogtreecommitdiff
path: root/libs/binder/Static.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2020-07-21 02:21:48 +0000
committer Steven Moreland <smoreland@google.com> 2020-07-21 18:30:20 +0000
commit4fdb12f625e40a32bd4fe228b939099d1ccad361 (patch)
tree37b0a983c0d62bb4fb552119fc6c5e5773799191 /libs/binder/Static.cpp
parentea8305102a6cdd1b2cf89b1f020391bd19f71244 (diff)
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
Diffstat (limited to 'libs/binder/Static.cpp')
-rw-r--r--libs/binder/Static.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/binder/Static.cpp b/libs/binder/Static.cpp
index 779ed412ba..db0f1c7c3f 100644
--- a/libs/binder/Static.cpp
+++ b/libs/binder/Static.cpp
@@ -68,9 +68,4 @@ TextOutput& alog(*new LogTextOutput());
TextOutput& aout(*new FdTextOutput(STDOUT_FILENO));
TextOutput& aerr(*new FdTextOutput(STDERR_FILENO));
-// ------------ ProcessState.cpp
-
-Mutex& gProcessMutex = *new Mutex;
-sp<ProcessState> gProcess;
-
} // namespace android