[PATCH] D27656: [tsan] Implement __tsan_get_alloc_stack to query the allocation stack of a heap pointer

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 11 13:38:43 PST 2016


kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, zaks.anna, kcc.
kubabrecka added a subscriber: llvm-commits.
kubabrecka set the repository for this revision to rL LLVM.
kubabrecka added a project: Sanitizers.

In ASan, we have `__asan_get_alloc_stack`, which is used in LLDB/Xcode to show the allocation backtrace for a heap memory object.  This patch implements the same for TSan.


Repository:
  rL LLVM

https://reviews.llvm.org/D27656

Files:
  lib/tsan/rtl/tsan_debugging.cc
  lib/tsan/rtl/tsan_interface.h
  test/tsan/debug_alloc_stack.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27656.81007.patch
Type: text/x-patch
Size: 4164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161211/d8b88382/attachment.bin>


More information about the llvm-commits mailing list