[all-commits] [llvm/llvm-project] 34e2f4: [sanitizer] Do not mmap FlagParser::flags_
PiJoules via All-commits
all-commits at lists.llvm.org
Tue Aug 29 12:08:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34e2f4f2e28a464b127d878979efbc87bc148db5
https://github.com/llvm/llvm-project/commit/34e2f4f2e28a464b127d878979efbc87bc148db5
Author: Leonard Chan <leonardchan at google.com>
Date: 2023-08-29 (Tue, 29 Aug 2023)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.cpp
M compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.h
Log Message:
-----------
[sanitizer] Do not mmap FlagParser::flags_
Instead, make it a static array that's part of the FlagParser. The advantage
this has is helping reduce fragmentation from needing to anonymously mmap
this array via the LowLevelAllocator. This will instead place the array on
the stack. Functionally, the only difference is that the array will not be
zero-initialized, but all used elements are explicitly initialized via the
flag handlers.
Differential Revision: https://reviews.llvm.org/D158780
More information about the All-commits
mailing list