]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Allow a thread to spin longer when yielding before switching to a
authorJulian Seward <jseward@acm.org>
Wed, 15 Mar 2006 14:18:16 +0000 (14:18 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 15 Mar 2006 14:18:16 +0000 (14:18 +0000)
different thread.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_1_BRANCH@5768

coregrind/m_scheduler/scheduler.c

index 9bfc6ca58b16cded46f8008f8b9a425e141bf230..a562ed65e13a48d3189ffec943e881ec003bc8bd 100644 (file)
@@ -736,8 +736,8 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid )
             before swapping to another.  That means that short term
             spins waiting for hardware to poke memory won't cause a
             thread swap. */
-        if (VG_(dispatch_ctr) > 100) 
-            VG_(dispatch_ctr) = 100;
+        if (VG_(dispatch_ctr) > 2000) 
+            VG_(dispatch_ctr) = 2000;
         break;
 
       case VG_TRC_INNER_COUNTERZERO: