Skip to content

Commit

Permalink
8293567: AbstractSplittableWithBrineGenerator: salt has digits that d…
Browse files Browse the repository at this point in the history
…uplicate the marker

Reviewed-by: jlaskey
  • Loading branch information
rgiulietti committed Sep 26, 2022
1 parent 36b61c5 commit 968af74
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2399,7 +2399,7 @@ Spliterator<SplittableGenerator> makeSplitsSpliterator(long index, long fence, S
long multiplier = (1L << SALT_SHIFT) - 1;
long salt = multiplier << (64 - SALT_SHIFT);
while ((salt & multiplier) == 0) {
long digit = Math.multiplyHigh(bits, multiplier);
long digit = Math.unsignedMultiplyHigh(bits, multiplier);
salt = (salt >>> SALT_SHIFT) | (digit << (64 - SALT_SHIFT));
bits *= multiplier;
}
Expand Down

0 comments on commit 968af74

Please sign in to comment.