|
From: <sv...@va...> - 2005-05-24 20:07:23
|
Author: njn
Date: 2005-05-24 21:07:20 +0100 (Tue, 24 May 2005)
New Revision: 3799
Modified:
trunk/coregrind/vg_scheduler.c
Log:
All other checks with VG_N_THREADS are <, except this one.
(From Madhu Kurup.)
Modified: trunk/coregrind/vg_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
--- trunk/coregrind/vg_scheduler.c 2005-05-24 15:09:14 UTC (rev 3798)
+++ trunk/coregrind/vg_scheduler.c 2005-05-24 20:07:20 UTC (rev 3799)
@@ -240,7 +240,7 @@
{
ThreadId tid;
=20
- for(tid =3D 1; tid <=3D VG_N_THREADS; tid++)
+ for(tid =3D 1; tid < VG_N_THREADS; tid++)
if (VG_(threads)[tid].status !=3D VgTs_Empty && VG_(threads)[tid].=
os_state.lwpid =3D=3D lwp)
return tid;
=20
|