From cde90a66b51fd0f6402dc0d981ef2fa8e63ec970 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 13 Jun 2017 22:29:15 +0000 Subject: [PATCH] [sanitize] Remove stack size limits from secondary threads. If pthread_attr_getstack tell us the stack is 2G, why would we doubt that? Differential Revision: https://reviews.llvm.org/D34169 llvm-svn: 305330 --- compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc index a15b5858af40..894013ddd880 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc @@ -113,7 +113,6 @@ void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, my_pthread_attr_getstack(&attr, &stackaddr, &stacksize); pthread_attr_destroy(&attr); - CHECK_LE(stacksize, kMaxThreadStackSize); // Sanity check. *stack_top = (uptr)stackaddr + stacksize; *stack_bottom = (uptr)stackaddr; }