summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_private.h
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>1999-07-11 05:56:37 +0000
committerjasone <jasone@FreeBSD.org>1999-07-11 05:56:37 +0000
commitd1e30ddcd16d4d7217ba77db099fe1c9bbe85803 (patch)
tree3908ace46508aeb3c84794ab51e089a5ab6a9050 /lib/libpthread/thread/thr_private.h
parentf687757a7c174d7f844f10cb815bdcc00a2632ff (diff)
downloadFreeBSD-src-d1e30ddcd16d4d7217ba77db099fe1c9bbe85803.zip
FreeBSD-src-d1e30ddcd16d4d7217ba77db099fe1c9bbe85803.tar.gz
Modify previous changes to conform better to libc_r's coding style.
Always use mmap() for default-size stack allocation. Use MAP_ANON instead of MAP_STACK on the alpha architecture. Reduce the amount of code executed while owning _gc_mutex during stack allocation.
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
-rw-r--r--lib/libpthread/thread/thr_private.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h
index 513d81e..c72adac3 100644
--- a/lib/libpthread/thread/thr_private.h
+++ b/lib/libpthread/thread/thr_private.h
@@ -31,7 +31,7 @@
*
* Private thread definitions for the uthread kernel.
*
- * $Id: pthread_private.h,v 1.21 1999/07/05 00:35:17 jasone Exp $
+ * $Id: pthread_private.h,v 1.22 1999/07/06 00:25:35 jasone Exp $
*/
#ifndef _PTHREAD_PRIVATE_H
@@ -337,9 +337,11 @@ struct pthread_attr {
#define PTHREAD_STACK_DEFAULT 65536
/* Size of red zone at the end of each stack. */
#define PTHREAD_STACK_GUARD 4096
-/* Maximum size of initial thread's stack. This perhaps deserves to be larger
+/*
+ * Maximum size of initial thread's stack. This perhaps deserves to be larger
* than the stacks of other threads, since many applications are likely to run
- * almost entirely on this stack. */
+ * almost entirely on this stack.
+ */
#define PTHREAD_STACK_INITIAL 0x100000
/* Address immediately beyond the beginning of the initial thread stack. */
#if defined(__FreeBSD__)
@@ -887,9 +889,11 @@ SCLASS pthread_switch_routine_t _sched_switch_hook
#endif
;
-/* Spare stack queue. Stacks of default size are cached in order to reduce
+/*
+ * Spare stack queue. Stacks of default size are cached in order to reduce
* thread creation time. Spare stacks are used in LIFO order to increase cache
- * locality. */
+ * locality.
+ */
SCLASS SLIST_HEAD(, stack) _stackq;
/* Base address of next unallocated default-size stack. Stacks are allocated
OpenPOWER on IntegriCloud