[llvm-commits] [PATCH] asan-rt: discover main thread stack limits without pthread
kcc at google.com
Tue Dec 27 17:24:39 CST 2011
I like the idea (it may actually fix the problem reported today on wine),
but we need to guard the code that uses sysinfo/sysinfo.h
with ASAN_USE_SYSINFO==1 (see asan_stack.cc).
Or add some macro machinery to get sysinfo.h from an alternative place as
in perftools (base/sysinfo.h).
On Wed, Dec 21, 2011 at 4:04 AM, Evgeniy Stepanov <eugeni.stepanov at gmail.com
> if __asan_init is called from .preinit_array, pthread_getattr_np may
> become unsafe. This patch adds a different way of locating the stack
> of the main thread with a combination of getlrimit() and
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits