diff options
author | Kostya Serebryany <kcc@google.com> | 2011-12-16 19:13:35 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2011-12-16 19:13:35 +0000 |
commit | 69eca73ac96688c8bfe1f23ee006af29c7858c40 (patch) | |
tree | f7cd04617ce830fa527ec98d3da2c3abf1db076b /lib/asan/asan_thread.h | |
parent | f32b41d3a0b52e9373abbe76c17b48b67633aefa (diff) |
Recently the GCD tests started failing because of the invalid size of
FakeStack on the worker threads.
This patch moves the AsanThread initialization into a separate
procedure that's called when AsanThread objects are called for worker
threads.
Patch by glider@google.com
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_thread.h')
-rw-r--r-- | lib/asan/asan_thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asan/asan_thread.h b/lib/asan/asan_thread.h index 2e68b0d01..c382c85a6 100644 --- a/lib/asan/asan_thread.h +++ b/lib/asan/asan_thread.h @@ -66,6 +66,7 @@ class AsanThread { void *arg, AsanStackTrace *stack); ~AsanThread(); + void Init(); // Should be called from the thread itself. void *ThreadStart(); uintptr_t stack_top() { return stack_top_; } |