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

Dan Heidinga heidinga at openjdk.org
Fri Mar 24 12:46:03 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.

I agree that the changes Doug made are "far from trivial" which is due to the complexity of the problem space.  Changing the # of cpus at runtime is those algorithms is a tricky problem which makes me hesitant to review a minimal solution.

Have you considered backporting the entire set of j.u.c.* classes that Doug updated in the mainline to jdk17?  That would probably provide a more consistent solution and any bugs would be shared with the mainline

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

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


More information about the crac-dev mailing list