aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ThreadLocalTest.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2022-02-09 09:12:02 +0100
committerRainer Orth <ro@gcc.gnu.org>2022-02-09 09:12:02 +0100
commit0d4b6f1f4b7b5f20698aae42a616b1bb3e18ef85 (patch)
tree20c831b3133b8604532310c4cff695e676be2a45 /llvm/unittests/Support/ThreadLocalTest.cpp
parent7cca34acc4acd9d163ca8b9e585587b8897483b9 (diff)
downloadllvm-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