* cygheap.h (enum cygheap_types): Add HEAP_MMAP.

(CYGHEAPSIZE): Add another 64K.
* mmap.cc: Use cmalloc, ccalloc and crealloc with HEAP_MMAP type throughout.
This commit is contained in:
Christopher Faylor
2003-08-23 00:03:54 +00:00
parent 7f32ba3a8d
commit 5c6497b43f
3 changed files with 19 additions and 11 deletions

View File

@ -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;