From: Julian Seward Date: Thu, 16 Mar 2006 11:31:29 +0000 (+0000) Subject: upmerge r5768 (Allow a thread to spin longer when yielding before X-Git-Tag: svn/VALGRIND_3_2_0~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623a1278753b742ded2576a6b3e4a4831d4e11fd;p=thirdparty%2Fvalgrind.git upmerge r5768 (Allow a thread to spin longer when yielding before switching to a different thread.) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5774 --- diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index 1b62f1a692..b5ad40cef2 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -883,8 +883,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: