]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Turn off TSAN for isc_log_wouldlog
authorMark Andrews <marka@isc.org>
Mon, 31 Aug 2020 12:41:46 +0000 (22:41 +1000)
committerMark Andrews <marka@isc.org>
Wed, 9 Sep 2020 04:12:29 +0000 (14:12 +1000)
lib/isc/include/isc/util.h
lib/isc/log.c

index eec94c023d7b40abe6551c9b7a429d856ee70a67..a97da4e87e13ae8468ef7fe608142f719dbf016a 100644 (file)
 #endif /* if __has_feature(thread_sanitizer) */
 
 #if __SANITIZE_THREAD__
-#define ISC_NO_SANITIZE __attribute__((no_sanitize("thread")))
+#define ISC_NO_SANITIZE_THREAD __attribute__((no_sanitize("thread")))
 #else /* if __SANITIZE_THREAD__ */
-#define ISC_NO_SANITIZE
+#define ISC_NO_SANITIZE_THREAD
 #endif /* if __SANITIZE_THREAD__ */
 
 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR >= 6)
index 8bbdcea19e5076a4616431b177fa117acf7fdbbb..cac6f9c2ffdf03833bc0a458125610e6eec2ebdd 100644 (file)
@@ -1460,7 +1460,7 @@ isc_log_open(isc_logchannel_t *channel) {
        return (result);
 }
 
-bool
+ISC_NO_SANITIZE_THREAD bool
 isc_log_wouldlog(isc_log_t *lctx, int level) {
        /*
         * Try to avoid locking the mutex for messages which can't