Skip to content

Commit 954088f

Browse files
committed
fix TSAN compilation error
Since ROOT calls itself during compilation, TSAN false positives can abort the compilation process.
1 parent e510d39 commit 954088f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/base/src/TObject.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ Bool_t TObject::fgObjectStat = kTRUE;
7070

7171
#if defined(__clang__) || defined(__GNUC__)
7272
#define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
73+
#define ATTRIBUTE_NO_SANITIZE_THREAD __attribute__((no_sanitize_thread))
7374
#else
7475
#define ATTRIBUTE_NO_SANITIZE_ADDRESS
76+
#define ATTRIBUTE_NO_SANITIZE_THREAD
7577
#endif
7678

7779
namespace ROOT {
@@ -85,6 +87,7 @@ namespace Internal {
8587
// delete, we can still use it to detect the cases where the destructor was called.
8688

8789
ATTRIBUTE_NO_SANITIZE_ADDRESS
90+
ATTRIBUTE_NO_SANITIZE_THREAD
8891
bool DeleteChangesMemoryImpl()
8992
{
9093
static constexpr UInt_t kGoldenUUID = 0x00000021;

0 commit comments

Comments
 (0)