[PATCH] Call real pthread_attr_getstack instead of the interceptor

Alexey Samsonov samsonov at google.com
Fri Nov 22 02:37:10 PST 2013


  LGTM

  Certainly, I don't like this change, but looks like we need to land this, as otherwise we're breaking some bad but not uncommon real-life code. Also, see nit below.


================
Comment at: lib/sanitizer_common/sanitizer_linux_libcdep.cc:37
@@ +36,3 @@
+SANITIZER_WEAK_ATTRIBUTE
+int __sanitizer_pthread_attr_getstack(void *attr, void **addr, size_t *size);
+
----------------
Can define this weak function to call "pthread_attr_getstack" and get rid of my_pthread_attr_getstack?


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

BRANCH
  svn

ARCANIST PROJECT
  compiler-rt



More information about the llvm-commits mailing list