Common: Allow threadpool size up to 16.

In Config, we allow 16, so this just matches that.
This commit is contained in:
Unknown W. Brackets
2021-04-15 23:56:34 -07:00
parent 74f08bee2a
commit 639dd67130
+3 -3
View File
@@ -88,9 +88,9 @@ ThreadPool::ThreadPool(int numThreads) {
if (numThreads <= 0) {
numThreads_ = 1;
INFO_LOG(JIT, "ThreadPool: Bad number of threads %d", numThreads);
} else if (numThreads > 8) {
INFO_LOG(JIT, "ThreadPool: Capping number of threads to 8 (was %d)", numThreads);
numThreads_ = 8;
} else if (numThreads > 16) {
INFO_LOG(JIT, "ThreadPool: Capping number of threads to 16 (was %d)", numThreads);
numThreads_ = 16;
} else {
numThreads_ = numThreads;
}