[jps-cache] Fix ExecutorService configuration

GitOrigin-RevId: 2202efd58e5357a30bf1f704a144f3d75e41296e
This commit is contained in:
Mikhail Mazurkevich
2019-11-22 23:01:46 +00:00
committed by intellij-monorepo-bot
parent 8d5e953d8e
commit d371e9ce9c
@@ -259,7 +259,7 @@ public class JpsOutputLoaderManager {
}
private static int getThreadPoolSize() {
return (Runtime.getRuntime().availableProcessors() / 2) > 3 ? 3 : 1;
return (Runtime.getRuntime().availableProcessors()) > 3 ? 3 : 2;
}
private void onFail() {