diff --git a/chunky/src/java/se/llbit/chunky/main/Chunky.java b/chunky/src/java/se/llbit/chunky/main/Chunky.java index 68e74eae3b..05beadf48d 100644 --- a/chunky/src/java/se/llbit/chunky/main/Chunky.java +++ b/chunky/src/java/se/llbit/chunky/main/Chunky.java @@ -342,6 +342,7 @@ public void update() { */ public static ForkJoinPool getCommonThreads() { if (commonThreads == null) { + // use at least two threads to prevent deadlocks in some java versions (see #1631) commonThreads = new ForkJoinPool(Math.max(PersistentSettings.getNumThreads(), 2)); } return commonThreads;