mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed weird different classloaders in community?
This commit is contained in:
@@ -27,7 +27,8 @@ public class IdeaForkJoinWorkerThreadFactory implements ForkJoinPool.ForkJoinWor
|
||||
public static void setupForkJoinCommonPool() {
|
||||
System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", String.valueOf(PARALLELISM));
|
||||
System.setProperty("java.util.concurrent.ForkJoinPool.common.threadFactory", IdeaForkJoinWorkerThreadFactory.class.getName());
|
||||
if (ForkJoinPool.commonPool().getFactory().getClass() != IdeaForkJoinWorkerThreadFactory.class) {
|
||||
|
||||
if (!ForkJoinPool.commonPool().getFactory().getClass().getName().equals(IdeaForkJoinWorkerThreadFactory.class.getName())) {
|
||||
throw new IllegalStateException("Could not set ForkJoinPool thread factory: got "+ForkJoinPool.commonPool().getFactory());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user