[clang] [clang-tools-extra] [lldb] [llvm] [Allocator] Drop RedZoneSize (non-sanitizer) and BytesAllocated members (PR #205711)
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 23:04:02 PDT 2026
mikaelholmen wrote:
Hi @MaskRay
If compiling with ASAN, this starts failing with this patch:
```build-all-asan/tools/clang/unittests/AllClangUnitTests --gtest_filter=PPMemoryAllocationsTest.PPMacroDefinesAllocations```
It fails with:
```
Note: Google Test filter = PPMemoryAllocationsTest.PPMacroDefinesAllocations
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PPMemoryAllocationsTest
[ RUN ] PPMemoryAllocationsTest.PPMacroDefinesAllocations
Preprocessor allocator memory for 1000000 #define: 136839168
Bytes per #define: 1.368392e+02
/repo/llvm-project/clang/unittests/Lex/PPMemoryAllocationsTest.cpp:92: Failure
Expected: (BytesPerDefine) < (130.0f), actual: 136.839172 vs 130
[ FAILED ] PPMemoryAllocationsTest.PPMacroDefinesAllocations (5651 ms)
[----------] 1 test from PPMemoryAllocationsTest (5651 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (5652 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] PPMemoryAllocationsTest.PPMacroDefinesAllocations
1 FAILED TEST
```
It still fails on latest trunk (030e141fa93).
Also seen in the build bot a few comments up:
https://github.com/llvm/llvm-project/pull/205711#issuecomment-4824701543
https://github.com/llvm/llvm-project/pull/205711
More information about the cfe-commits
mailing list