[compiler-rt] r264271 - Follow-up for r264261, adding a comment explaining what the testcase does.

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 06:20:38 PDT 2016


Author: kuba.brecka
Date: Thu Mar 24 08:20:38 2016
New Revision: 264271

URL: http://llvm.org/viewvc/llvm-project?rev=264271&view=rev
Log:
Follow-up for r264261, adding a comment explaining what the testcase does.


Modified:
    compiler-rt/trunk/test/tsan/Darwin/malloc-stack-logging.cc

Modified: compiler-rt/trunk/test/tsan/Darwin/malloc-stack-logging.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/malloc-stack-logging.cc?rev=264271&r1=264270&r2=264271&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/malloc-stack-logging.cc (original)
+++ compiler-rt/trunk/test/tsan/Darwin/malloc-stack-logging.cc Thu Mar 24 08:20:38 2016
@@ -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>




More information about the llvm-commits mailing list