From d8f87fba651a721601fa86d1e4b95d8ea17d9e79 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 18 Mar 2004 19:30:51 +0000 Subject: * 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. --- winsup/cygwin/child_info.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/child_info.h') diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 4088477fc..25591d835 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -29,7 +29,7 @@ enum #define EXEC_MAGIC_SIZE sizeof(child_info) -#define CURR_CHILD_INFO_MAGIC 0x4239088U +#define CURR_CHILD_INFO_MAGIC 0x70172124U /* NOTE: Do not make gratuitous changes to the names or organization of the below class. The layout is checksummed to determine compatibility between @@ -49,6 +49,7 @@ public: HANDLE pppid_handle; init_cygheap *cygheap; void *cygheap_max; + DWORD cygheap_alloc_sz; HANDLE cygheap_h; unsigned fhandler_union_cb; }; -- cgit v1.2.3