* 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:
@ -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;
|
||||
|
Reference in New Issue
Block a user