FJP::setParallelism update

Anton Kozlov akozlov at azul.com
Fri May 27 11:12:40 UTC 2022



On 5/26/22 17:25, Dan Heidinga wrote:
> The new method is ::setParallelism(int) [0].  Once the crac branch
> consumes the latest jdk stream, I'll update FJP to implement Resource
> and we can update the parallelism so pools, in particular the common
> pool, work better when the available # of threads changes.
> 
> [0] https://github.com/openjdk/crac/blob/f235955eefb1141a2e72116dfcf345e40416f059/src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java#L2938

Are you going change the common pool behavior or all instances of FJP?
Or all instances of FJP with the default parallelism value? I think we
need carefully avoid changing parallelism of a FJP if that was set
explicitly.

Thanks,
Anton


More information about the crac-dev mailing list