|
From: <sv...@va...> - 2006-03-15 14:18:21
|
Author: sewardj
Date: 2006-03-15 14:18:16 +0000 (Wed, 15 Mar 2006)
New Revision: 5768
Log:
Allow a thread to spin longer when yielding before switching to a
different thread.
Modified:
branches/VALGRIND_3_1_BRANCH/coregrind/m_scheduler/scheduler.c
Modified: branches/VALGRIND_3_1_BRANCH/coregrind/m_scheduler/scheduler.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/VALGRIND_3_1_BRANCH/coregrind/m_scheduler/scheduler.c 2006-0=
3-15 12:14:17 UTC (rev 5767)
+++ branches/VALGRIND_3_1_BRANCH/coregrind/m_scheduler/scheduler.c 2006-0=
3-15 14:18:16 UTC (rev 5768)
@@ -736,8 +736,8 @@
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)=20
- VG_(dispatch_ctr) =3D 100;
+ if (VG_(dispatch_ctr) > 2000)=20
+ VG_(dispatch_ctr) =3D 2000;
break;
=20
case VG_TRC_INNER_COUNTERZERO:
|