PERFORCE change 152469 for review

Peter Wemm peter at FreeBSD.org
Tue Nov 4 09:05:59 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=152469

Change 152469 by peter at peter_overcee on 2008/11/04 17:05:50

	Re-add cleanup_thread().  m_scheduler.c calls it.

Affected files ...

.. //depot/projects/valgrind/coregrind/m_syswrap/syswrap-amd64-freebsd.c#7 edit

Differences ...

==== //depot/projects/valgrind/coregrind/m_syswrap/syswrap-amd64-freebsd.c#7 (text+ko) ====

@@ -111,6 +111,9 @@
    More thread stuff
    ------------------------------------------------------------------ */
 
+void VG_(cleanup_thread) ( ThreadArchState *arch )
+{
+}
 
 /* ---------------------------------------------------------------------
    PRE/POST wrappers for x86/Linux-specific syscalls
@@ -223,6 +226,7 @@
 
    if (res.isError) {
       /* clone failed */
+      VG_(cleanup_thread)(&ctst->arch);
       ctst->status = VgTs_Empty;
       /* oops.  Better tell the tool the thread exited in a hurry :-) */
       VG_TRACK( pre_thread_ll_exit, ctid );


More information about the p4-projects mailing list