File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,24 @@ class TRefCountedTracker::TNamedSlot
74
74
75
75
TRefCountedTrackerStatistics::TNamedSlotStatistics GetStatistics () const ;
76
76
77
- TNamedSlot& operator += (const TLocalSlot& rhs)
77
+ #define REF_COUNTED_TRACKER_NO_TSAN
78
+ #if defined(__has_feature)
79
+ #if __has_feature(thread_sanitizer)
80
+ #undef REF_COUNTED_TRACKER_NO_TSAN
81
+ #define REF_COUNTED_TRACKER_NO_TSAN __attribute__ ((no_sanitize(" thread" )))
82
+ #endif
83
+ #endif
84
+
85
+ TNamedSlot& REF_COUNTED_TRACKER_NO_TSAN operator += (const TLocalSlot& rhs)
78
86
{
79
87
#define XX (name ) name ## _ += rhs.name;
80
88
ENUMERATE_SLOT_FIELDS ()
81
89
#undef XX
82
90
return *this ;
83
91
}
84
92
93
+ #undef REF_COUNTED_TRACKER_NO_TSAN
94
+
85
95
TNamedSlot& operator += (const TGlobalSlot& rhs)
86
96
{
87
97
#define XX (name ) name ## _ += rhs.name.load();
You can’t perform that action at this time.
0 commit comments