Home
last modified time | relevance | path

Searched refs:fjpClass (Results 1 – 2 of 2) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DCommonPool.kt61 val fjpClass = Try { Class.forName("java.util.concurrent.ForkJoinPool") } in createPool() constant
65 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()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DCommonPoolTest.kt19 val fjpClass = Try { Class.forName("java.util.concurrent.ForkJoinPool") } ?: return in testIsGoodCommonPool() constant
23 val fjpCtor = Try { fjpClass.getDeclaredConstructor( in testIsGoodCommonPool()
35 assertFalse(CommonPool.isGoodCommonPool(fjpClass, fjp0)) in testIsGoodCommonPool()
39 assertTrue(CommonPool.isGoodCommonPool(fjpClass, fjp1)) in testIsGoodCommonPool()