diff options
author | Alexander Potapenko <glider@google.com> | 2022-02-17 15:09:31 +0100 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2022-02-17 15:34:41 +0100 |
commit | be77afe43dd39f517ab2468c359fd0d5633d9be6 (patch) | |
tree | d806b3ca2b37c51d28a80ecec5a2ea2b6ed45301 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | c9b36807beaf120f4e06d9da3b7df7625e440825 (diff) | |
download | llvm-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