[PATCH] Move GetThreadStackAndTls from TSan to sanitizer_common.

Sergey Matveev earthdok at google.com
Tue May 7 06:38:59 PDT 2013


Hi dvyukov, kcc, glider, samsonov,

Move this function to sanitizer_common because LSan uses it too. Also,
fix a bug where the TLS range reported for main thread was off by the size
of the thread descriptor (TSan doesn't care much, but for LSan it's critical).

http://llvm-reviews.chandlerc.com/D753

Files:
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_linux.h
  lib/sanitizer_common/sanitizer_mac.cc
  lib/sanitizer_common/sanitizer_win.cc
  lib/sanitizer_common/tests/sanitizer_common_test.cc
  lib/sanitizer_common/tests/sanitizer_linux_test.cc
  lib/tsan/rtl/tsan_platform.h
  lib/tsan/rtl/tsan_platform_linux.cc
  lib/tsan/rtl/tsan_platform_mac.cc
  lib/tsan/rtl/tsan_platform_windows.cc
  lib/tsan/tests/unit/CMakeLists.txt
  lib/tsan/tests/unit/tsan_platform_test.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D753.1.patch
Type: text/x-patch
Size: 12825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130507/daeebdf6/attachment.bin>


More information about the llvm-commits mailing list