diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2022-02-09 09:12:02 +0100 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2022-02-09 09:12:02 +0100 |
commit | 0d4b6f1f4b7b5f20698aae42a616b1bb3e18ef85 (patch) | |
tree | 20c831b3133b8604532310c4cff695e676be2a45 /llvm/unittests/Support/ThreadLocalTest.cpp | |
parent | 7cca34acc4acd9d163ca8b9e585587b8897483b9 (diff) | |
download | llvm-0d4b6f1f4b7b5f20698aae42a616b1bb3e18ef85.zip llvm-0d4b6f1f4b7b5f20698aae42a616b1bb3e18ef85.tar.gz llvm-0d4b6f1f4b7b5f20698aae42a616b1bb3e18ef85.tar.bz2 |
[sanitizer_common] Fix DenseMapCustomTest.DefaultMinReservedSizeTest on SPARC
As described in Issue #53523, the
`DenseMapCustomTest.DefaultMinReservedSizeTest` test FAILs on Solaris/SPARC
(both 32 and 64-bit):
/vol/llvm/src/llvm-project/local/compiler-rt/lib/sanitizer_common/tests/sanitizer_dense_map_test.cpp:399:
Failure
Expected: (MemorySize) != (Map.getMemorySize()), actual: 8192 vs 8192
This happens because SPARC, unlike many other CPUs, uses an 8 kB pagesize.
Fixed by incorporating the pagesize into the calculations of
`ExpectedInitialBucketCount` and derived values.
Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`, and
`x86_64-pc-linux-gnu`.
Differential Revision: https://reviews.llvm.org/D118771
Diffstat (limited to 'llvm/unittests/Support/ThreadLocalTest.cpp')
0 files changed, 0 insertions, 0 deletions