RFR: 8290079: Reduce interaction with volatile in static initializer of BigInteger [v2]
Сергей Цыпанов
duke at openjdk.org
Wed Jul 13 15:32:21 UTC 2022
On Wed, 13 Jul 2022 15:00:07 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8290079: Rename local var
>
> src/java.base/share/classes/java/math/BigInteger.java line 1276:
>
>> 1274: * on demand.
>> 1275: */
>> 1276: BigInteger[][] powerCache = new BigInteger[Character.MAX_RADIX+1][];
>
> Using a different local name will avoid the shadowing and make it more obvious that the initialization is being deliberately being done before the assignment to a volatile.
Fixed.
-------------
PR: https://git.openjdk.org/jdk/pull/9451
More information about the core-libs-dev
mailing list