]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Back out a small part of r10589 (the tick-after-recv thing). On
authorJulian Seward <jseward@acm.org>
Tue, 28 Jul 2009 20:22:18 +0000 (20:22 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 28 Jul 2009 20:22:18 +0000 (20:22 +0000)
contemplation it seems like a bad idea.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10650

helgrind/libhb_core.c

index 58b5c6a3e9039c2e128fd76e8c15f571af1b427b..fab97ecfd8f5d6e4ad31ec8b79a8461aff4f8917 100644 (file)
@@ -5540,10 +5540,14 @@ void libhb_so_recv ( Thr* thr, SO* so, Bool strong_recv )
       thr->viR = VtsID__join2( thr->viR, so->viR );
       VtsID__rcinc(thr->viR);
 
-// QQQ
-VtsID__rcdec(thr->viR);
-thr->viR = VtsID__tick( thr->viR, thr );
-VtsID__rcinc(thr->viR);
+      /* At one point (r10589) it seemed safest to tick the clocks for
+         the receiving thread after the join.  But on reflection, I
+         wonder if that might cause it to 'overtake' constraints,
+         which could lead to missing races.  So, back out that part of
+         r10589. */
+      //VtsID__rcdec(thr->viR);
+      //thr->viR = VtsID__tick( thr->viR, thr );
+      //VtsID__rcinc(thr->viR);
 
       /* For a strong receive, we also advance the receiver's write
          clock, which means the receive as a whole is essentially
@@ -5553,13 +5557,10 @@ VtsID__rcinc(thr->viR);
          thr->viW = VtsID__join2( thr->viW, so->viW );
          VtsID__rcinc(thr->viW);
 
-
-// QQQ
-VtsID__rcdec(thr->viW);
-thr->viW = VtsID__tick( thr->viW, thr );
-VtsID__rcinc(thr->viW);
-
-
+         /* See comment just above, re r10589. */
+         //VtsID__rcdec(thr->viW);
+         //thr->viW = VtsID__tick( thr->viW, thr );
+         //VtsID__rcinc(thr->viW);
       }
 
       Filter__clear(thr->filter, "libhb_so_recv");