|
From: <sv...@va...> - 2005-07-27 23:04:30
|
Author: tom
Date: 2005-07-28 00:04:28 +0100 (Thu, 28 Jul 2005)
New Revision: 4287
Log:
Move (commented out) call to VG_(tm_thread_switchto) to VG_(set_running) =
so
that it is always called when a new thread starts running. Add in a direc=
t
call to VG_TRACK to issue a thread_run event at the same place until thre=
ad
modelling is working again.
Modified:
trunk/coregrind/m_scheduler/scheduler.c
Modified: trunk/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
--- trunk/coregrind/m_scheduler/scheduler.c 2005-07-27 22:59:50 UTC (rev =
4286)
+++ trunk/coregrind/m_scheduler/scheduler.c 2005-07-27 23:04:28 UTC (rev =
4287)
@@ -203,6 +203,10 @@
=20
if (VG_(clo_trace_sched))
print_sched_event(tid, "now running");
+
+ // While thre modeling is disable, issue thread_run events here
+ // VG_(tm_thread_switchto)(tid);
+ VG_TRACK( thread_run, tid );
}
=20
/*=20
@@ -626,7 +630,6 @@
VG_(set_sleeping)(tid, VgTs_Yielding);
/* nothing */
VG_(set_running)(tid);
- //VG_(tm_thread_switchto)(tid);
=20
/* OK, do some relatively expensive housekeeping stuff */
scheduler_sanity(tid);
|