[PATCH] D20927: tsan: clean up dynamic TLS memory between reuse

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 2 11:02:17 PDT 2016


dvyukov created this revision.
dvyukov added a reviewer: eugenis.
dvyukov added a subscriber: llvm-commits.
Herald added a subscriber: kubabrecka.

Currently the added test produces false race reports with glibc 2.19,
because DLTS memory is reused by pthread under the hood.

Use the DTLS machinery to intercept new DTLS ranges.
__tls_get_addr known to cause issues for tsan in the past,
so write the interceptor more carefully.

http://reviews.llvm.org/D20927

Files:
  lib/tsan/rtl/tsan_flags.cc
  lib/tsan/rtl/tsan_interceptors.cc
  lib/tsan/rtl/tsan_rtl_thread.cc
  test/tsan/dtls.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20927.59426.patch
Type: text/x-patch
Size: 5413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160602/92551683/attachment.bin>


More information about the llvm-commits mailing list