diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-03-24 13:20:38 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-03-24 13:20:38 +0000 |
commit | 60fa02fc7b31fbacd40cd66a660fa9b75f3ed170 (patch) | |
tree | 6b04ac26d77cb3d1be14542219f7f60eee7b21ab /test/tsan/Darwin | |
parent | dede08a53f245615e41f72441daa1f4b826e7d03 (diff) |
Follow-up for r264261, adding a comment explaining what the testcase does.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/Darwin')
-rw-r--r-- | test/tsan/Darwin/malloc-stack-logging.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tsan/Darwin/malloc-stack-logging.cc b/test/tsan/Darwin/malloc-stack-logging.cc index 447fcd1a9..8d9c2122d 100644 --- a/test/tsan/Darwin/malloc-stack-logging.cc +++ b/test/tsan/Darwin/malloc-stack-logging.cc @@ -1,3 +1,8 @@ +// Test that MallocStackLogging=1 doesn't crash. MallocStackLogging turns on +// callbacks from mmap/munmap libc function into libmalloc. Darwin-specific +// ThreadState initialization needs to avoid calling the library functions (and +// use syscalls directly) to make sure other interceptors aren't called. + // RUN: %clangxx_tsan -O1 %s -o %t // RUN: MallocStackLogging=1 %run %t 2>&1 | FileCheck %s #include <pthread.h> |