Unlike attribute((no_sanitize("thread"))), this one will cause TSan
to skip the entire function during instrumentation.
Depends on https://reviews.llvm.org/D108029
Paths
| Differential D108202
[tsan] Add support for disable_sanitizer_instrumentation attribute ClosedPublic Authored by glider on Aug 17 2021, 4:21 AM.
Details Summary Unlike attribute((no_sanitize("thread"))), this one will cause TSan Depends on https://reviews.llvm.org/D108029
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 17 2021, 4:21 AM melver added inline comments.
This revision is now accepted and ready to land.Aug 17 2021, 1:53 PM This revision was landed with ongoing or failed builds.Aug 23 2021, 3:40 AM Closed by commit rG8300d52e8cbf: [tsan] Add support for disable_sanitizer_instrumentation attribute (authored by glider). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 368060 clang/docs/ThreadSanitizer.rst
clang/test/CodeGen/sanitize-thread-disable.c
llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
|
s/to a certain function/to functions/