- Reduced level two bitmap size from 2**16 to 2**14 addresses. This 
  improves the performance of exp-drd (with default settings) for 
  some tests.
- Some consistency checks were commented out via #if 0 / #endif because 
  of performance reasons. Replaced #if 0 by
  #ifdef ENABLE_DRD_CONSISTENCY_CHECKS.
- Enabled -DENABLE_DRD_CONSISTENCY_CHECKS for the drd_bitmap_test 
  regression test.
- Updated performance measurements.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8219 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/exp-drd/drd_thread.h b/exp-drd/drd_thread.h
index e466376..6df7e5f 100644
--- a/exp-drd/drd_thread.h
+++ b/exp-drd/drd_thread.h
@@ -168,7 +168,7 @@
 static __inline__
 Bool running_thread_is_recording(void)
 {
-#if 0
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
   tl_assert(0 <= (int)s_drd_running_tid && s_drd_running_tid < DRD_N_THREADS
             && s_drd_running_tid != DRD_INVALID_THREADID);
 #endif
@@ -179,11 +179,11 @@
 static __inline__
 void thread_set_stack_min(const DrdThreadId tid, const Addr stack_min)
 {
-#if 0
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
   tl_assert(0 <= tid && tid < DRD_N_THREADS && tid != DRD_INVALID_THREADID);
 #endif
   s_threadinfo[tid].stack_min = stack_min;
-#if 0
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
   /* 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
@@ -209,7 +209,7 @@
 static __inline__
 Segment* thread_get_segment(const DrdThreadId tid)
 {
-#if 0
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
   tl_assert(0 <= (int)tid && tid < DRD_N_THREADS
             && tid != DRD_INVALID_THREADID);
   tl_assert(s_threadinfo[tid].last);