Reduce PrimaryRegionSizeLog to 28U to be compatible with a 39 bit
VMA on the fuchsia-riscv platform. PrimaryGroupSizeLog is
reduced to 19 to preserve 512 BatchGroups per region.
This change can be tested on Fuchsia with:
fx set --auto-dir bringup.riscv64 --with //bundles:boot_tests \ fx build bundles:boot_tests \ fx run-boot-test --args={-s,1} boot-libc-unittests \ --cmdline='--gtest_filter=-*DeathTest*:PthreadGetSet*:ScudoSecondaryTest*'
The gtest filter ignores pthread and death tests due to non-scudo
related issues on fuchsia-riscv (ScudoSecondaryTest includes a death
check).
Related Ticket: https://fxbug.dev/125263
I would prefer to keep it for now even if it's deprecated (as @Chia-hungDuan mentioned in https://reviews.llvm.org/D146454#4262007). The reason why I'm asking it is that this configuration actually helped detect an issue in the recent MemMap CLs because, unlike FuchsiaConfig, it enables the secondary allocator cache. We can remove it later when we ensure that other tests that would have caught those issues exist.