8229845: Decrease memory consumption of BigInteger.toString()

Aleksey Shipilev shade at redhat.com
Tue Aug 20 08:05:44 UTC 2019


On 8/19/19 10:08 PM, Brian Burkhalter wrote:
> [2] http://cr.openjdk.java.net/~bpb/8229845/webrev.00/

Two drive-by comments:

 *) It seems the "signum == 0" case in smallToString is regressing? Before, it just returned the
constant-pooled "0", now it goes via StringBuilder;

 *) This might be "static final", while we are at it:

4109     private static String[] zeros = new String[64];


-- 
Thanks,
-Aleksey



More information about the core-libs-dev mailing list