RFR: 8228581: Archive BigInteger constants

Jiangli Zhou jianglizhou at google.com
Wed Jul 24 19:54:33 UTC 2019


On Wed, Jul 24, 2019 at 12:41 PM Joe Darcy <joe.darcy at oracle.com> wrote:
>
> Hi Claes,
>
> For those of us unfamiliar with the archive mechanism, can you describe
> its semantics or send a pointer to such a description?

That's a good point. There are some design docs describing how Java
objects and object graphs archiving work. It might be good to put
those in OpenJDK wiki.

Best regards,
Jiangli

>
> Thanks,
>
> -Joe
>
> On 7/24/2019 6:28 AM, Claes Redestad wrote:
> > Hi,
> >
> > BigInteger has a number of pre-calculated constants that are profitable
> > to put up for archiving. This reduces initialization time of BigInteger
> > by 0.3-0.5ms, and archives ~12Kb worth of objects.
> >
> > Bug:    https://bugs.openjdk.java.net/browse/JDK-8228581
> > Webrev: http://cr.openjdk.java.net/~redestad/8228581/open.00/
> >
> > Webrev is applied on top of patch for
> > https://bugs.openjdk.java.net/browse/JDK-8228507 - which I've
> > tested alongside this.
> >
> > Testing: tier1-2
> >
> > Thanks!
> >
> > /Claes


More information about the core-libs-dev mailing list