summaryrefslogtreecommitdiff
path: root/libthreads/cthreads.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-28 23:55:55 +0000
committerRoland McGrath <roland@gnu.org>2002-05-28 23:55:55 +0000
commit7fc20b5223dade5932d3d2cb30eb8fb3e74a8699 (patch)
treeafadbd853822d034c0d60425bd18945529a4e645 /libthreads/cthreads.c
parentadd243b4dd17000ca86f50cc0d6b490315004aac (diff)
2002-05-28 Roland McGrath <roland@frob.com>
* cthreads.c (cthread_fork_prepare, cthread_fork_parent, cthread_fork_child): Don't call malloc_fork_* (lost in merge).
Diffstat (limited to 'libthreads/cthreads.c')
-rw-r--r--libthreads/cthreads.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index 645ac939..fce1b593 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -29,7 +29,21 @@
* Renamed cthread_t->catch to to cthread_t->catch_exit, because
* catch is reserved word in c++.
*
- * $Log: cthreads.c,v $
+ * $Log: cthreads.c,v $
+ * Revision 1.12 2002/05/27 02:50:10 roland
+ * 2002-05-26 Roland McGrath <roland@frob.com>
+ *
+ * Changes merged from CMU MK83a version:
+ * * cthreads.h, options.h: Various cleanups.
+ * * call.c, cthread_data.c, sync.c, mig_support.c: Likewise.
+ * * i386/cthreads.h, i386/thread.c, i386/lock.s: Likewise.
+ * * cthread_internals.h: Add decls for internal functions.
+ * (struct cproc): Use vm_offset_t for stack_base and stack_size members.
+ * Use natural_t for context member.
+ * * cprocs.c: Use prototypes for all defns.
+ * * cthreads.c: Likewise.
+ * (cthread_exit): Cast any_t to integer_t before int.
+ *
* Revision 2.13 93/01/21 12:27:55 danner
* Remove deadlock in cproc_fork_child; must release malloc lock first.
* [93/01/19 16:37:43 bershad]
@@ -397,7 +411,6 @@ cthread_fork_prepare(void)
{
spin_lock(&free_lock);
mutex_lock(&cthread_lock);
- malloc_fork_prepare();
cproc_fork_prepare();
}
@@ -405,7 +418,6 @@ void
cthread_fork_parent(void)
{
cproc_fork_parent();
- malloc_fork_parent();
mutex_unlock(&cthread_lock);
spin_unlock(&free_lock);
}
@@ -416,7 +428,6 @@ cthread_fork_child(void)
cthread_t t;
cproc_t p;
- malloc_fork_child();
cproc_fork_child();
mutex_unlock(&cthread_lock);
spin_unlock(&free_lock);