summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2016-04-15 14:29:55 -0700
committer Colin Cross <ccross@android.com> 2016-04-15 14:29:55 -0700
commit96e8322f4d11af8538d6d0db5f1a11338b8aee9d (patch)
tree461acff6624b23b44433fe4033c5d26e40af4a45 /libs/binder/ProcessState.cpp
parent9eb286a074a8b2764b69339b0958dc5b176f1a8d (diff)
Log when binder thread pool is starved
Log when the number of threads executing binder commands is equal to the maximium size of the thread pool for >100ms. Bug: 28201939 Change-Id: I892863d8a81c06e362d4ae18ab08485fdec3c0bb
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r--libs/binder/ProcessState.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index b221e51811..f13f49fe93 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -343,6 +343,7 @@ ProcessState::ProcessState()
, mThreadCountDecrement(PTHREAD_COND_INITIALIZER)
, mExecutingThreadsCount(0)
, mMaxThreads(DEFAULT_MAX_BINDER_THREADS)
+ , mStarvationStartTimeMs(0)
, mManagesContexts(false)
, mBinderContextCheckFunc(NULL)
, mBinderContextUserData(NULL)