From d371e9ce9cd294bcc9e60d95b4b716fef96cc944 Mon Sep 17 00:00:00 2001 From: Mikhail Mazurkevich Date: Sat, 23 Nov 2019 01:51:52 +0300 Subject: [PATCH] [jps-cache] Fix ExecutorService configuration GitOrigin-RevId: 2202efd58e5357a30bf1f704a144f3d75e41296e --- .../com/intellij/jps/cache/loader/JpsOutputLoaderManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/jps-cache/src/com/intellij/jps/cache/loader/JpsOutputLoaderManager.java b/plugins/jps-cache/src/com/intellij/jps/cache/loader/JpsOutputLoaderManager.java index e396a007dda8..beda06c74881 100644 --- a/plugins/jps-cache/src/com/intellij/jps/cache/loader/JpsOutputLoaderManager.java +++ b/plugins/jps-cache/src/com/intellij/jps/cache/loader/JpsOutputLoaderManager.java @@ -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() {