From 5c6497b43f67ac058e6699ebcd5f3961567ef13c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 23 Aug 2003 00:03:54 +0000 Subject: * cygheap.h (enum cygheap_types): Add HEAP_MMAP. (CYGHEAPSIZE): Add another 64K. * mmap.cc: Use cmalloc, ccalloc and crealloc with HEAP_MMAP type throughout. --- winsup/cygwin/cygheap.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/cygheap.h') diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index c03d60077..2211af2be 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -22,7 +22,8 @@ enum cygheap_types HEAP_1_ARGV, HEAP_1_BUF, HEAP_1_EXEC, - HEAP_1_MAX = 100 + HEAP_1_MAX = 100, + HEAP_MMAP = 200 }; #define incygheap(s) (cygheap && ((char *) (s) >= (char *) cygheap) && ((char *) (s) <= ((char *) cygheap_max))) @@ -256,7 +257,7 @@ struct init_cygheap #endif }; -#define CYGHEAPSIZE (sizeof (init_cygheap) + (16000 * sizeof (fhandler_union)) + (4 * 65536)) +#define CYGHEAPSIZE (sizeof (init_cygheap) + (16000 * sizeof (fhandler_union)) + (5 * 65536)) extern init_cygheap *cygheap; extern void *cygheap_max; -- cgit v1.2.3