|
From: <sv...@va...> - 2008-04-05 12:52:59
|
Author: bart
Date: 2008-04-05 13:53:00 +0100 (Sat, 05 Apr 2008)
New Revision: 7845
Log:
Commented out the too frequently called tl_assert() statements.
Modified:
trunk/exp-drd/drd_thread.c
Modified: trunk/exp-drd/drd_thread.c
===================================================================
--- trunk/exp-drd/drd_thread.c 2008-04-05 11:36:35 UTC (rev 7844)
+++ trunk/exp-drd/drd_thread.c 2008-04-05 12:53:00 UTC (rev 7845)
@@ -170,6 +170,7 @@
: VG_INVALID_THREADID);
}
+#if 0
/** Sanity check of the doubly linked list of segments referenced by a
* ThreadInfo struct.
* @return True if sane, False if not.
@@ -191,6 +192,7 @@
}
return True;
}
+#endif
DrdThreadId thread_pre_create(const DrdThreadId creator,
const ThreadId vg_created)
@@ -415,7 +417,7 @@
{
tl_assert(0 <= tid && tid < DRD_N_THREADS
&& tid != DRD_INVALID_THREADID);
- tl_assert(sane_ThreadInfo(&s_threadinfo[tid]));
+ // tl_assert(sane_ThreadInfo(&s_threadinfo[tid]));
sg->prev = s_threadinfo[tid].last;
sg->next = 0;
if (s_threadinfo[tid].last)
@@ -423,7 +425,7 @@
s_threadinfo[tid].last = sg;
if (s_threadinfo[tid].first == 0)
s_threadinfo[tid].first = sg;
- tl_assert(sane_ThreadInfo(&s_threadinfo[tid]));
+ // tl_assert(sane_ThreadInfo(&s_threadinfo[tid]));
}
/** Remove a segment from the segment list of thread threadid, and free the
@@ -578,7 +580,7 @@
{
Segment* sg;
- tl_assert(sane_ThreadInfo(&s_threadinfo[i]));
+ // tl_assert(sane_ThreadInfo(&s_threadinfo[i]));
for (sg = s_threadinfo[i].first; sg; sg = sg->next)
{
@@ -593,7 +595,7 @@
}
}
- tl_assert(sane_ThreadInfo(&s_threadinfo[i]));
+ // tl_assert(sane_ThreadInfo(&s_threadinfo[i]));
}
}
|