Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a09c76c authored by Steven Moreland's avatar Steven Moreland
Browse files

Revert "Disallow shrinking threadpool size once started."

This reverts commit e52a3b60.

Reason for revert: caught bug in b/150901303, but will temporarily revert until it can be fixed.

Change-Id: Ia8e37395e0d000d247c0ffa4ac9243aab699d09b
parent e52a3b60
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -324,8 +324,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;