[crac] RFR: Resize ForkJoinPool and some concurrent data structures

Dan Heidinga heidinga at openjdk.org
Thu Mar 23 17:34:46 UTC 2023


On Thu, 23 Mar 2023 16:10:44 GMT, Radim Vansa <duke at openjdk.org> wrote:

> Some parts of JDK expect that #cpus is constant; update those places after restore.

@rvansa This was discussed on the list back in May 2022 [0] and it was noted that Doug Lea updated FJP to support changing the number of threads using a new ::setParallelism(int) [1] method.  Is this patch a backport of that work?

Backporting the FJP changes to the CRaC branch and basing our updates on the ::setParallelism method will provide the best continuity to users as they move to using CRaC on newer releases.

[0] https://mail.openjdk.org/pipermail/crac-dev/2022-May/000229.html
[1] https://github.com/openjdk/crac/blob/f235955eefb1141a2e72116dfcf345e40416f059/src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java#L2938

-------------

PR Comment: https://git.openjdk.org/crac/pull/54#issuecomment-1481603976


More information about the crac-dev mailing list