Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ThreadSanitizer (tsan) - Suppression files vs blacklist files

Is there a difference between ThreadSanitizer suppression files and blacklist files? -- when used by the llvm-specific compiler flag of -fsanitize-blacklist=

When should I use one over the other?

like image 672
user1902689 Avatar asked Nov 28 '25 21:11

user1902689


1 Answers

ASFAIK blacklisted code doesn't get tsan instrumentation at all, while suppressed code is a runtime thing so the supressed code still get monitored by tsan but simply not reported, so that a report won't get polluted by known races.

This can make a performance difference.

like image 51
CodeMonkey1 Avatar answered Dec 01 '25 13:12

CodeMonkey1