diff options
author | Christopher Faylor <me@cgf.cx> | 2004-03-18 19:30:51 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-03-18 19:30:51 +0000 |
commit | d8f87fba651a721601fa86d1e4b95d8ea17d9e79 (patch) | |
tree | d137c5e2b58bb055eac6fd31f8703bec9a83f4a1 /winsup/cygwin/cygheap.h | |
parent | 891d1990ab12996b3ae2e0538d78c7b6fd697462 (diff) | |
download | cygnal-d8f87fba651a721601fa86d1e4b95d8ea17d9e79.tar.gz cygnal-d8f87fba651a721601fa86d1e4b95d8ea17d9e79.tar.bz2 cygnal-d8f87fba651a721601fa86d1e4b95d8ea17d9e79.zip |
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset to new value.
(child_info::cygheap_alloc_sz): New field.
* cygheap.cc (init_cheap): Reduce size of cygwin stack until minimal hit when
attempting initial allocation.
(cygheap_setup_for_child): Use alloc_sz to create secondary memory mapped
entry. Store alloc_sz in cygheap_alloc_sz.
(cygheap_fixup_in_child): Use cygheap_alloc_sz to map parent's cygheap.
* cygheap.h (_CYGHEAPSIZE_SLOP): New define.
(CYGHEAPSIZE): Use _CYGHEAPSIZE_SLOP.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 518e9dce6..864fa9729 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -272,7 +272,9 @@ struct init_cygheap void close_ctty (); }; -#define CYGHEAPSIZE (sizeof (init_cygheap) + (20000 * sizeof (fhandler_union)) + (32 * 1024 * 1024)) +#define _CYGHEAPSIZE_SLOP (32 * 1024 * 1024) +#define CYGHEAPSIZE (sizeof (init_cygheap) + (20000 * sizeof (fhandler_union)) + _CYGHEAPSIZE_SLOP) +#define CYGHEAPSIZE_MIN (sizeof (init_cygheap) + (10000 * sizeof (fhandler_union))) extern init_cygheap *cygheap; extern void *cygheap_max; |