RFR: 8355719: Reduce memory consumption of BigInteger.pow() [v46]

Raffaello Giulietti rgiulietti at openjdk.org
Fri May 2 12:45:55 UTC 2025


On Tue, 29 Apr 2025 19:11:32 GMT, Johannes Graham <duke at openjdk.org> wrote:

>> fabioromano1 has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Adjust the type of operand
>>  - Use a more loose formula to do range check
>>    
>>    Use a more loose formula to do range check, in order not to exclude a priori values that may be inside the supported range
>
> A thought for a future PR  - computing long powers could be useful as a public method as well.

@j3graham 
> A thought for a future PR - computing long powers could be useful as a public method as well.

FYI, I just submitted #25003.

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

PR Comment: https://git.openjdk.org/jdk/pull/24690#issuecomment-2847118072


More information about the core-libs-dev mailing list