[PATCH] tsan: implement suppressions for top frame only

Dmitry Vyukov dvyukov at google.com
Wed Jun 24 05:34:31 PDT 2015


Hi glider,

The new suppression type is called "race_top" and is matched only against top frame in report stacks.
This is required for situations when we want to suppress a race in a "thread pool" or "event loop" implementation.
If we simply use "race:ThreadPool::Execute" suppression, that can suppress everything in the program.

http://reviews.llvm.org/D10686

Files:
  lib/tsan/rtl/tsan_suppressions.cc
  lib/tsan/rtl/tsan_suppressions.h
  test/tsan/race_top_suppression.cc
  test/tsan/race_top_suppression.cc.supp
  test/tsan/race_top_suppression1.cc
  test/tsan/race_top_suppression1.cc.supp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10686.28334.patch
Type: text/x-patch
Size: 3782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150624/46b20492/attachment.bin>


More information about the llvm-commits mailing list