]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Comment-only fix.
authorBart Van Assche <bvanassche@acm.org>
Sat, 29 Mar 2008 13:13:33 +0000 (13:13 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 29 Mar 2008 13:13:33 +0000 (13:13 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7805

exp-drd/drd_thread.h

index 7ada919eb8b8afcfaa8c3b969cdf18878adf538b..ac76439d73cbe60e3a0ebbc526437f399e6120c0 100644 (file)
@@ -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))
   {