Intercept CFAllocator for each thread in the program.
Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160630 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_thread.cc b/lib/asan/asan_thread.cc
index a46ae28..05a41ea 100644
--- a/lib/asan/asan_thread.cc
+++ b/lib/asan/asan_thread.cc
@@ -89,6 +89,7 @@
            stack_top_ - stack_bottom_, &local);
   }
   fake_stack_.Init(stack_size());
+  AsanPlatformThreadInit();
 }
 
 thread_return_t AsanThread::ThreadStart() {