[all-commits] [llvm/llvm-project] 96005d: [scudo] Tune FuchsiaConfig for RiscV
Caslyn Tonelli via All-commits
all-commits at lists.llvm.org
Mon Apr 17 13:16:25 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 96005d75b29df315f74978cb0b7602b35f663b75
https://github.com/llvm/llvm-project/commit/96005d75b29df315f74978cb0b7602b35f663b75
Author: Caslyn Tonelli <caslyn at google.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M compiler-rt/lib/scudo/standalone/allocator_config.h
M compiler-rt/lib/scudo/standalone/platform.h
Log Message:
-----------
[scudo] Tune FuchsiaConfig for RiscV
Reduce `PrimaryRegionSizeLog` to 28U to be compatible with a 38bit user
address space 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
Differential Revision: https://reviews.llvm.org/D148475
More information about the All-commits
mailing list