[PATCH] [asan] Move lsan_disabled out of thread context.

Alexey Samsonov samsonov at google.com
Fri Jun 21 06:58:23 PDT 2013


  LGTM (assuming the test fails w/o this change).


================
Comment at: lib/lsan/lit_tests/TestCases/disabler_in_tsd_destructor.cc:24
@@ +23,3 @@
+void *thread_func(void *arg) {
+  int res = pthread_setspecific(key, (void*)1);
+  assert(res == 0);
----------------
I'd just use assert(0 == pthread_...) here and below.


http://llvm-reviews.chandlerc.com/D1017

BRANCH
  fix/lsan/disabler

ARCANIST PROJECT
  compiler-rt



More information about the llvm-commits mailing list