user1902689
user1902689

Reputation: 1775

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?

Upvotes: 3

Views: 877

Answers (1)

CodeMonkey1
CodeMonkey1

Reputation: 133

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.

Upvotes: 0

Related Questions