[llvm-commits] [compiler-rt] r147322 - /compiler-rt/trunk/lib/asan/asan_thread_registry.cc

Kostya Serebryany kcc at google.com
Wed Dec 28 12:47:22 PST 2011


Author: kcc
Date: Wed Dec 28 14:47:21 2011
New Revision: 147322

URL: http://llvm.org/viewvc/llvm-project?rev=147322&view=rev
Log:
[asan] missing PTHREAD_DESTRUCTOR_ITERATIONS on Android. patch by eugeni.stepanov at gmail.com

Modified:
    compiler-rt/trunk/lib/asan/asan_thread_registry.cc

Modified: compiler-rt/trunk/lib/asan/asan_thread_registry.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_thread_registry.cc?rev=147322&r1=147321&r2=147322&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_thread_registry.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_thread_registry.cc Wed Dec 28 14:47:21 2011
@@ -27,6 +27,12 @@
   return asan_thread_registry;
 }
 
+#ifdef ANDROID
+#ifndef PTHREAD_DESTRUCTOR_ITERATIONS
+#define PTHREAD_DESTRUCTOR_ITERATIONS 4
+#endif
+#endif
+
 // Dark magic below. In order to be able to notice that we're not handling
 // some thread creation routines (e.g. on Mac OS) we want to distinguish the
 // thread that used to have a corresponding AsanThread object from the thread





More information about the llvm-commits mailing list