Prevent inlining of code with thread sanitiser disabled

This commit is contained in:
Mark Andrews
2020-12-10 06:31:19 +00:00
parent c2676bccc5
commit 0e5a076cc1
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -227,9 +227,11 @@
#endif
#if __SANITIZE_THREAD__
#define ISC_NO_SANITIZE_THREAD __attribute__((no_sanitize("thread")))
#define ISC_NO_SANITIZE_THREAD __attribute__((no_sanitize("thread"))) __attribute__((noinline))
#define ISC_NO_SANITIZE_INLINE
#else /* if __SANITIZE_THREAD__ */
#define ISC_NO_SANITIZE_THREAD
#define ISC_NO_SANITIZE_INLINE inline
#endif /* if __SANITIZE_THREAD__ */
#ifdef UNIT_TESTING