From 89af41680a1c82f54414a1ad1d050b24d9227dc4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 27 Jul 2005 23:04:28 +0000 Subject: [PATCH] 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 direct call to VG_TRACK to issue a thread_run event at the same place until thread modelling is working again. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4287 --- coregrind/m_scheduler/scheduler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index e93d220a87..41b41acce8 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -203,6 +203,10 @@ void VG_(set_running)(ThreadId tid) 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 ); } /* @@ -626,7 +630,6 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid ) VG_(set_sleeping)(tid, VgTs_Yielding); /* nothing */ VG_(set_running)(tid); - //VG_(tm_thread_switchto)(tid); /* OK, do some relatively expensive housekeeping stuff */ scheduler_sanity(tid); -- 2.47.3