RFR: 8214761: Bug in parallel Kahan summation implementation [v2]
Joe Darcy
darcy at openjdk.java.net
Mon Aug 30 21:18:34 UTC 2021
On Wed, 21 Jul 2021 20:19:31 GMT, Ian Graves <igraves at openjdk.org> wrote:
>> 8214761: Bug in parallel Kahan summation implementation
>
> Ian Graves has updated the pull request incrementally with three additional commits since the last revision:
>
> - Updates with more test coverage
> - stashing
> - Stashing
The code changes look fine, but IMO the comments should be re-worded a bit.
Rather text like
// Negating this value because low-order bits are in negated form
I suggest something like
// Subtract compensation bits
The main compensation loop also subtracts the compensation bits. A comment like "subtract compensation bits" makes the corrected handling of them seem less anomalous.
-------------
Marked as reviewed by darcy (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/4674
More information about the core-libs-dev
mailing list