From 5ac97845b13293cc7984eeaaacf1e9e9b23eb1f0 Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Thu, 24 Mar 2016 13:20:38 +0000 Subject: [PATCH] Follow-up for r264261, adding a comment explaining what the testcase does. llvm-svn: 264271 --- compiler-rt/test/tsan/Darwin/malloc-stack-logging.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler-rt/test/tsan/Darwin/malloc-stack-logging.cc b/compiler-rt/test/tsan/Darwin/malloc-stack-logging.cc index 447fcd1..8d9c212 100644 --- a/compiler-rt/test/tsan/Darwin/malloc-stack-logging.cc +++ b/compiler-rt/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 -- 2.7.4