summaryrefslogtreecommitdiff
path: root/libs/binder/Static.cpp
diff options
context:
space:
mode:
author Yabin Cui <yabinc@google.com> 2018-06-05 14:34:36 -0700
committer Yabin Cui <yabinc@google.com> 2018-06-05 14:34:36 -0700
commitc39caf36da9999c4b61ec8898f8735dcce7fd199 (patch)
treeae7e2116bc5003986b9246f631700839924a3fd2 /libs/binder/Static.cpp
parent6fa25f9d8fa003a6fb694bf8b09f1c5f316034b9 (diff)
libbinder: fix using destroyed mutex warning.
Bug: 77473515 Test: run `pm list instrumentation` for several hours, Test: and no warning appears. Change-Id: I66a39ddd66731779fdc6e534f827ad524685b3ba
Diffstat (limited to 'libs/binder/Static.cpp')
-rw-r--r--libs/binder/Static.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/Static.cpp b/libs/binder/Static.cpp
index c5c3fd58c3..d6d0340a36 100644
--- a/libs/binder/Static.cpp
+++ b/libs/binder/Static.cpp
@@ -72,7 +72,7 @@ TextOutput& aerr(gStderrTextOutput);
// ------------ ProcessState.cpp
-Mutex gProcessMutex;
+Mutex& gProcessMutex = *new Mutex;
sp<ProcessState> gProcess;
class LibBinderIPCtStatics