summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/asan/asan_thread.h')
-rw-r--r--compiler-rt/lib/asan/asan_thread.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler-rt/lib/asan/asan_thread.h b/compiler-rt/lib/asan/asan_thread.h
index a3d0146aa92..45351a7a7af 100644
--- a/compiler-rt/lib/asan/asan_thread.h
+++ b/compiler-rt/lib/asan/asan_thread.h
@@ -30,10 +30,10 @@ class AsanThread;
class AsanThreadSummary {
public:
explicit AsanThreadSummary(LinkerInitialized) { } // for T0.
- AsanThreadSummary(int tid, int parent_tid, AsanStackTrace *stack)
- : tid_(tid),
- parent_tid_(parent_tid),
+ AsanThreadSummary(int parent_tid, AsanStackTrace *stack)
+ : parent_tid_(parent_tid),
announced_(false) {
+ tid_ = -1;
if (stack) {
stack_ = *stack;
}
@@ -48,6 +48,7 @@ class AsanThreadSummary {
}
}
int tid() { return tid_; }
+ void set_tid(int tid) { tid_ = tid; }
AsanThread *thread() { return thread_; }
void set_thread(AsanThread *thread) { thread_ = thread; }
private:
@@ -63,7 +64,7 @@ class AsanThread {
public:
explicit AsanThread(LinkerInitialized); // for T0.
static AsanThread *Create(int parent_tid, void *(*start_routine) (void *),
- void *arg);
+ void *arg, AsanStackTrace *stack);
void Destroy();
void Init(); // Should be called from the thread itself.
OpenPOWER on IntegriCloud