summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/lit_tests/thread_name.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/tsan/lit_tests/thread_name.cc')
-rw-r--r--compiler-rt/lib/tsan/lit_tests/thread_name.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/tsan/lit_tests/thread_name.cc b/compiler-rt/lib/tsan/lit_tests/thread_name.cc
index 9a86f4f29ed..0ca0b176997 100644
--- a/compiler-rt/lib/tsan/lit_tests/thread_name.cc
+++ b/compiler-rt/lib/tsan/lit_tests/thread_name.cc
@@ -15,8 +15,7 @@ void *Thread1(void *x) {
}
void *Thread2(void *x) {
- AnnotateThreadName(__FILE__, __LINE__, "Thread2");
- // TODO: pthread_setname_np(pthread_self(), "Thread2");
+ pthread_setname_np(pthread_self(), "Thread2");
Global--;
return NULL;
}
OpenPOWER on IntegriCloud