[PATCH] [Msan] Fix the pthread_getattr_np_deadlock.cc to build and pass on FreeBSD

Evgeniy Stepanov eugenis at google.com
Thu May 7 09:49:33 PDT 2015


================
Comment at: test/msan/pthread_getattr_np_deadlock.cc:15
@@ -9,2 +14,3 @@
   pthread_attr_t attr;
+  pthread_attr_init(&attr);
   int res = pthread_getattr_np(pthread_self(), &attr);
----------------
#ifdef __FreeBSD__

The point of the test is to have the first memory allocation in a thread to happen inside pthread_getattr_np.

http://reviews.llvm.org/D9553

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list