From: Bart Van Assche Date: Sat, 29 Mar 2008 13:13:33 +0000 (+0000) Subject: Comment-only fix. X-Git-Tag: svn/VALGRIND_3_4_0~784 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f313325ac84504f44165dbb457a0d9aa8bc7c38;p=thirdparty%2Fvalgrind.git Comment-only fix. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7805 --- diff --git a/exp-drd/drd_thread.h b/exp-drd/drd_thread.h index 7ada919eb8..ac76439d73 100644 --- a/exp-drd/drd_thread.h +++ b/exp-drd/drd_thread.h @@ -172,7 +172,10 @@ void thread_set_stack_min(const DrdThreadId tid, const Addr stack_min) #endif s_threadinfo[tid].stack_min = stack_min; #if 0 - tl_assert(s_threadinfo[tid].stack_min < s_threadinfo[tid].stack_max); + /* This function can be called after the thread has been created but */ + /* before drd_post_thread_create() has filled in stack_max. */ + tl_assert(s_threadinfo[tid].stack_min < s_threadinfo[tid].stack_max + || s_threadinfo[tid].stack_max == 0); #endif if (UNLIKELY(stack_min < s_threadinfo[tid].stack_min_min)) {