[PATCH] D15381: [tsan] Add a DCHECK to verify __tsan_read* and __tsan_write function aren't called from ScopedInterceptor

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 08:36:55 PST 2015


kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, glider, samsonov, kcc.
kubabrecka added subscribers: llvm-commits, zaks.anna.

Interceptors using `ScopedInteceptor` should never call into user's code before the `ScopedInterceptor` is out of scope (and its destructor is called).  Let's add a DCHECK to enforce that.

http://reviews.llvm.org/D15381

Files:
  lib/tsan/rtl/tsan_interceptors.cc
  lib/tsan/rtl/tsan_interface_inl.h
  lib/tsan/rtl/tsan_rtl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15381.42305.patch
Type: text/x-patch
Size: 4267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151209/a467e886/attachment.bin>


More information about the llvm-commits mailing list