Revert "Disallow shrinking threadpool size once started."
- Fixes camera breakage on kona and lahaina
This reverts commit 8e047f7a626c782a02dc9e67dee2dbae35bc6956.
Change-Id: Id9300a354dce8e4f616a6dae2527b00543abcc4a
Reviewed-on: https://review.blissroms.org/c/platform_system_libhwbinder/+/12105
Reviewed-by: Jack <jackeagle102@gmail.com>
Tested-by: Jack <jackeagle102@gmail.com>
diff --git a/ProcessState.cpp b/ProcessState.cpp
index dbd6c87..6a69f5f 100644
--- a/ProcessState.cpp
+++ b/ProcessState.cpp
@@ -308,9 +308,6 @@
}
status_t ProcessState::setThreadPoolConfiguration(size_t maxThreads, bool callerJoinsPool) {
- LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads,
- "Binder threadpool cannot be shrunk after starting");
-
// if the caller joins the pool, then there will be one thread which is impossible.
LOG_ALWAYS_FATAL_IF(maxThreads == 0 && callerJoinsPool,
"Binder threadpool must have a minimum of one thread if caller joins pool.");