Searched refs:fjpClass (Results 1 – 2 of 2) sorted by relevance
61 val fjpClass = Try { Class.forName("java.util.concurrent.ForkJoinPool") } in createPool() constant65 Try { fjpClass.getMethod("commonPool")?.invoke(null) as? ExecutorService } in createPool()66 ?.takeIf { isGoodCommonPool(fjpClass, it) } in createPool()70 … Try { fjpClass.getConstructor(Int::class.java).newInstance(parallelism) as? ExecutorService } in createPool()79 internal fun isGoodCommonPool(fjpClass: Class<*>, executor: ExecutorService): Boolean { in isGoodCommonPool()85 val actual = Try { fjpClass.getMethod("getPoolSize").invoke(executor) as? Int } in isGoodCommonPool()
19 val fjpClass = Try { Class.forName("java.util.concurrent.ForkJoinPool") } ?: return in testIsGoodCommonPool() constant23 val fjpCtor = Try { fjpClass.getDeclaredConstructor( in testIsGoodCommonPool()35 assertFalse(CommonPool.isGoodCommonPool(fjpClass, fjp0)) in testIsGoodCommonPool()39 assertTrue(CommonPool.isGoodCommonPool(fjpClass, fjp1)) in testIsGoodCommonPool()