File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,14 @@ whether MemorySanitizer is enabled. :ref:`\_\_has\_feature
76
76
# endif
77
77
#endif
78
78
79
- ``__attribute__((no_sanitize_memory )) ``
79
+ ``__attribute__((no_sanitize("memory") )) ``
80
80
-----------------------------------------------
81
81
82
82
Some code should not be checked by MemorySanitizer. One may use the function
83
- attribute `no_sanitize_memory ` to disable uninitialized checks in a particular
84
- function. MemorySanitizer may still instrument such functions to avoid false
85
- positives. This attribute may not be supported by other compilers, so we
86
- suggest to use it together with ``__has_feature(memory_sanitizer) ``.
83
+ attribute `` no_sanitize("memory") `` to disable uninitialized checks in a
84
+ particular function. MemorySanitizer may still instrument such functions to
85
+ avoid false positives. This attribute may not be supported by other compilers,
86
+ so we suggest to use it together with ``__has_feature(memory_sanitizer) ``.
87
87
88
88
Blacklist
89
89
---------
Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ this purpose.
83
83
# endif
84
84
#endif
85
85
86
- ``__attribute__((no_sanitize_thread )) ``
86
+ ``__attribute__((no_sanitize("thread") )) ``
87
87
-----------------------------------------------
88
88
89
89
Some code should not be instrumented by ThreadSanitizer. One may use the
90
- function attribute `no_sanitize_thread ` to disable instrumentation of plain
90
+ function attribute `` no_sanitize("thread") ` ` to disable instrumentation of plain
91
91
(non-atomic) loads/stores in a particular function. ThreadSanitizer still
92
92
instruments such functions to avoid false positives and provide meaningful stack
93
93
traces. This attribute may not be supported by other compilers, so we suggest
@@ -99,9 +99,9 @@ Blacklist
99
99
ThreadSanitizer supports ``src `` and ``fun `` entity types in
100
100
:doc: `SanitizerSpecialCaseList `, that can be used to suppress data race reports
101
101
in the specified source files or functions. Unlike functions marked with
102
- `no_sanitize_thread ` attribute, blacklisted functions are not instrumented at
103
- all. This can lead to false positives due to missed synchronization via atomic
104
- operations and missed stack frames in reports.
102
+ `` no_sanitize("thread") `` attribute, blacklisted functions are not instrumented
103
+ at all. This can lead to false positives due to missed synchronization via
104
+ atomic operations and missed stack frames in reports.
105
105
106
106
Limitations
107
107
-----------
You can’t perform that action at this time.
0 commit comments