Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 17:05:58 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 152469 for review
Message-ID:  <200811041705.mA4H5w5a029079@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152469

Change 152469 by peter@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 );



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811041705.mA4H5w5a029079>