aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2022-02-17 15:09:31 +0100
committerAlexander Potapenko <glider@google.com>2022-02-17 15:34:41 +0100
commitbe77afe43dd39f517ab2468c359fd0d5633d9be6 (patch)
treed806b3ca2b37c51d28a80ecec5a2ea2b6ed45301 /clang/lib/Frontend/InitPreprocessor.cpp
parentc9b36807beaf120f4e06d9da3b7df7625e440825 (diff)
downloadllvm-be77afe43dd39f517ab2468c359fd0d5633d9be6.zip
llvm-be77afe43dd39f517ab2468c359fd0d5633d9be6.tar.gz
llvm-be77afe43dd39f517ab2468c359fd0d5633d9be6.tar.bz2
tsan: Add a missing disable_sanitizer_instrumentation attribute
Turns out the test was working by accident: we need to ensure TSan instrumentation is not called from the fork() hook, otherwise the tool will deadlock. Previously it worked because alloc_free_blocks() got inlined into __tsan_test_only_on_fork(), but it cannot always be the case. Adding __attribute__((disable_sanitizer_instrumentation)) will prevent TSan from instrumenting alloc_free_blocks(). Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D120050
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions