|
From: <sv...@va...> - 2009-02-14 14:46:22
|
Author: bart
Date: 2009-02-14 14:46:16 +0000 (Sat, 14 Feb 2009)
New Revision: 9151
Log:
Relaxed an assert statement: a thread canceled by pthread_cancel() can really exit with synchr_nesting > 0.
Modified:
trunk/drd/drd_thread.c
Modified: trunk/drd/drd_thread.c
===================================================================
--- trunk/drd/drd_thread.c 2009-02-14 12:14:50 UTC (rev 9150)
+++ trunk/drd/drd_thread.c 2009-02-14 14:46:16 UTC (rev 9151)
@@ -282,7 +282,7 @@
tl_assert(0 <= (int)tid && tid < DRD_N_THREADS
&& tid != DRD_INVALID_THREADID);
- tl_assert(s_threadinfo[tid].synchr_nesting == 0);
+ tl_assert(s_threadinfo[tid].synchr_nesting >= 0);
for (sg = s_threadinfo[tid].last; sg; sg = sg_prev)
{
sg_prev = sg->prev;
|