On Fri, 2 Jul 2021 20:12:39 GMT, Ian Graves <igra...@openjdk.org> wrote:

> 8214761: Bug in parallel Kahan summation implementation

src/java.base/share/classes/java/util/DoubleSummaryStatistics.java line 161:

> 159: 
> 160:         //Negating this value because low-order bits are in negated form
> 161:         sumWithCompensation(-other.sumCompensation);

Wouldn't that be `double tmp =  sum - sumCompensation;` in getSum() in line 246 
too?

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

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

Reply via email to