Merge "Revert "Disallow shrinking threadpool size once started.""

This commit is contained in:
Steven Moreland 2020-03-06 01:17:59 +00:00 committed by Gerrit Code Review
commit e15c527c67

View file

@ -328,8 +328,6 @@ void ProcessState::spawnPooledThread(bool isMain)
}
status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) {
LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads,
"Binder threadpool cannot be shrunk after starting");
status_t result = NO_ERROR;
if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) {
mMaxThreads = maxThreads;