RFR: 8214761: Bug in parallel Kahan summation implementation

Ian Graves igraves at openjdk.java.net
Mon Apr 12 21:31:57 UTC 2021


On Mon, 12 Apr 2021 19:45:24 GMT, Ian Graves <igraves at openjdk.org> wrote:

> Fixes a bug where the compensated sum should be negated when added together in the merge step of a given collector. This impacts accuracy of parallel summations with Double streams and creates larger deviations from a standard sequential (ie non-parallel) compensated summation.

Duplicate of https://github.com/openjdk/jdk/pull/2988

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

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


More information about the core-libs-dev mailing list