2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Turn off TSAN for isc_log_wouldlog

This commit is contained in:
Mark Andrews
2020-08-31 22:41:46 +10:00
parent 93dd7b1b93
commit 7b3c7f52c2
2 changed files with 3 additions and 3 deletions

View File

@@ -210,9 +210,9 @@
#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)

View 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