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

Commit 7b182b14 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Revert "Disallow shrinking threadpool size once started."" am: e15c527c am: a680c126

Change-Id: I9bd37455ccf0671e8966d40f3952a9bf7d41fad4
parents c4bb34f7 a680c126
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;