Skip to content

Commit

Permalink
8264976: Minor numeric bug in AbstractSplittableWithBrineGenerator.ma…
Browse files Browse the repository at this point in the history
…keSplitsSpliterator

Reviewed-by: psandoz, jlaskey
  • Loading branch information
shipilev committed Apr 14, 2021
1 parent 80026d8 commit 9406744
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2436,7 +2436,7 @@ Spliterator<SplittableGenerator> makeSplitsSpliterator(long index, long fence, S
// designed to work even if SALT_SHIFT does not evenly divide 64
// (the number of bits in a long value).
long bits = nextLong();
long multiplier = (1 << SALT_SHIFT) - 1;
long multiplier = (1L << SALT_SHIFT) - 1;
long salt = multiplier << (64 - SALT_SHIFT);
while ((salt & multiplier) != 0) {
long digit = Math.multiplyHigh(bits, multiplier);
Expand Down

1 comment on commit 9406744

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.