diff options
| author | Chia-hung Duan <chiahungduan@google.com> | 2023-08-28 21:34:02 +0000 |
|---|---|---|
| committer | Chia-hung Duan <chiahungduan@google.com> | 2023-08-28 22:11:18 +0000 |
| commit | 88852964ecae94be71e98e9881ed8ed182df8c0c (patch) | |
| tree | 95c9c0268cae396c7cefe9b31ff4ce89fbe626be /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | bc0b5699063ef4a678e663b8aee738b4906f8719 (diff) | |
[scudo] Add SCUDO_ENABLE_HOOKS to enable hooks at compilation time
Accessing the PLT entries of hooks can lead a certain amount of
performance overhead. This is observed on certain tasks which will do a
bunch of malloc/free and their throughputs are impacted by the null
check of hooks.
Also add SCUDO_ENABLE_HOOKS_TESTS to select if we want to run the hook
tests. On some platforms they may have different ways to run the
wrappers tests (end-to-end tests) and test the hooks along with the
wrappers tests may not be feasible. Provide an option to turn it ON/OFF.
By default, we only verify the hook behavior in the scudo standalone
tests if SCUDO_ENABLE_HOOKS is defined or COMPILER_RT_DEBUG is true.
Reviewed By: cferris, fabio-d
Differential Revision: https://reviews.llvm.org/D158784
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
