3

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?

user1902689
  • 1,655
  • 2
  • 22
  • 33

1 Answers1

0

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.

CodeMonkey1
  • 123
  • 1
  • 6