From bf256f7cd36aabc250f2381575f351906b01df05 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 10 Jun 1998 19:38:01 +0000 Subject: Tue Jun 9 13:50:09 1998 Thomas Bushnell, n/BSG * cthreads.c (cthread_fork_prepare): Don't call malloc_fork_prepare since we are no longer providing our own malloc in this library. (cthread_fork_parent): Likewise, for malloc_fork_parent. (cthread_fork_child): Likewize, for malloc_fork_child. --- libthreads/ChangeLog | 8 ++++++++ libthreads/cthreads.c | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'libthreads') diff --git a/libthreads/ChangeLog b/libthreads/ChangeLog index 772ec5f0..3de1561c 100644 --- a/libthreads/ChangeLog +++ b/libthreads/ChangeLog @@ -1,3 +1,11 @@ +Tue Jun 9 13:50:09 1998 Thomas Bushnell, n/BSG + + * cthreads.c (cthread_fork_prepare): Don't call + malloc_fork_prepare since we are no longer providing our own + malloc in this library. + (cthread_fork_parent): Likewise, for malloc_fork_parent. + (cthread_fork_child): Likewize, for malloc_fork_child. + Wed Aug 20 15:39:44 1997 Thomas Bushnell, n/BSG * cthreads.c (cthread_body): Wire self before calling user work diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c index d1ed1ffc..4b55f8b5 100644 --- a/libthreads/cthreads.c +++ b/libthreads/cthreads.c @@ -26,6 +26,13 @@ /* * HISTORY * $Log: cthreads.c,v $ + * Revision 1.7 1997/08/20 19:41:20 thomas + * Wed Aug 20 15:39:44 1997 Thomas Bushnell, n/BSG + * + * * cthreads.c (cthread_body): Wire self before calling user work + * function. This way all cthreads will be wired, which the ports + * library (and hurd_thread_cancel, etc.) depend on. + * * Revision 1.6 1997/06/10 01:22:19 thomas * Mon Jun 9 21:18:46 1997 Thomas Bushnell, n/BSG * @@ -415,14 +422,12 @@ cthread_fork_prepare() { spin_lock(&free_lock); mutex_lock(&cthread_lock); - malloc_fork_prepare(); cproc_fork_prepare(); } cthread_fork_parent() { cproc_fork_parent(); - malloc_fork_parent(); mutex_unlock(&cthread_lock); spin_unlock(&free_lock); } @@ -433,7 +438,6 @@ cthread_fork_child() cproc_t p; cproc_fork_child(); - malloc_fork_child(); mutex_unlock(&cthread_lock); spin_unlock(&free_lock); condition_init(&cthread_needed); -- cgit v1.2.3