|
From: Tom H. <th...@cy...> - 2004-10-20 12:26:04
|
CVS commit by thughes:
When nuking threads we set their status to VgTs_Empty. This patch
ensures that any associated mutex and conditional variable pointers
are also cleared so that the thread state appears sane.
BUG: 91599
M +2 -0 vg_scheduler.c 1.192
--- valgrind/coregrind/vg_scheduler.c #1.191:1.192
@@ -1374,4 +1374,6 @@ void VG_(nuke_all_threads_except) ( Thre
VG_(proxy_delete)(tid, True);
VG_(threads)[tid].status = VgTs_Empty;
+ VG_(threads)[tid].associated_mx = NULL;
+ VG_(threads)[tid].associated_cv = NULL;
cleanup_after_thread_exited( tid, True );
}
|