]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Minor optimization: commented out an assert statement.
authorBart Van Assche <bvanassche@acm.org>
Sun, 16 Mar 2008 08:31:04 +0000 (08:31 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 16 Mar 2008 08:31:04 +0000 (08:31 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7697

exp-drd/drd_vc.c

index 19476efda46c5590694d20752b551fdea9848df7..fb03d6b5d688a558ae53f03dcf6946dfd3c164fb 100644 (file)
@@ -104,8 +104,7 @@ void vc_increment(VectorClock* const vc, ThreadId const threadid)
  *    vc2, and if additionally all corresponding counters in v2 are higher or
  *    equal.
  */
-Bool vc_lte(const VectorClock* const vc1,
-            const VectorClock* const vc2)
+Bool vc_lte(const VectorClock* const vc1, const VectorClock* const vc2)
 {
   unsigned i;
   unsigned j = 0;
@@ -117,7 +116,7 @@ Bool vc_lte(const VectorClock* const vc1,
     }
     if (j >= vc2->size || vc2->vc[j].threadid > vc1->vc[i].threadid)
       return False;
-    tl_assert(j < vc2->size && vc2->vc[j].threadid == vc1->vc[i].threadid);
+    //tl_assert(j < vc2->size && vc2->vc[j].threadid == vc1->vc[i].threadid);
     if (vc1->vc[i].count > vc2->vc[j].count)
       return False;
   }