RFR: 8236847: CDS archive with 4K alignment unusable on machines with 64k pages [v2]

Andrew Haley aph at redhat.com
Thu Feb 25 09:36:57 UTC 2021


On 24/02/2021 18:48, Ioi Lam wrote:
> 
> How about this. We add a configure option like:
> 
> bash configure --with-cds-core-region-alignment=65536
> 
> and 
> 
> size_t MetaspaceShared::reserved_space_alignment()  {
> #ifdef CDS_CORE_REGION_ALIGNMENT
>   return CDS_CORE_REGION_ALIGNMENT;
> #else 
>   os::vm_allocation_granularity();
> #endif
> }

Hmm. I'm not convinced by making the numeric argument here a free field.
I'd allow precisely two options, "4k" and "64k", and if any crazy person
needs to add "1M" in the future, let them do so.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the hotspot-runtime-dev mailing list