Integrated: 8274349: ForkJoinPool.commonPool() does not work with 1 CPU

David Holmes dholmes at openjdk.java.net
Mon Oct 4 23:18:36 UTC 2021


On Fri, 1 Oct 2021 00:28:55 GMT, David Holmes <dholmes at openjdk.org> wrote:

> A regression introduced in Java 17 will give the default FJ pool a parallelism of zero in a uniprocessor environment. The fix restores this to a value of 1. See bug report for details.
> 
> Testing:
>  - new regression test
>  - tiers 1-3
> 
> Thanks,
> David

This pull request has now been integrated.

Changeset: 2e542e33
Author:    David Holmes <dholmes at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/2e542e33b81a53652956bb5e9636e7f4af5540f7
Stats:     84 lines in 3 files changed: 80 ins; 0 del; 4 mod

8274349: ForkJoinPool.commonPool() does not work with 1 CPU

Co-authored-by: Doug Lea <dl at openjdk.org>
Reviewed-by: shade, martin

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

PR: https://git.openjdk.java.net/jdk/pull/5784


More information about the core-libs-dev mailing list