malloc without mmap?
Joe Buehler
jbuehler@hekimian.com
Wed Apr 23 15:43:00 GMT 2003
I'm still attempting to narrow down some problems in ksh93.
Is it safe to disable the use of mmap() in malloc.cc? I want
to try this to see if ksh93 works any better. The patch I am going
to try is below.
--
Joe Buehler
--- winsup/cygwin/malloc.cc 2003-02-11 09:11:15.000000000 -0500
+++ winsup/cygwin/malloc.cc 2003-04-22 08:25:56.000000000 -0400
@@ -247,7 +247,7 @@
#define MORECORE_FAILURE ((void*)(-1))
/* Use the supplied emulation of mmap and munmap */
-#define HAVE_MMAP 1
+#define HAVE_MMAP 0
#define MUNMAP_FAILURE (-1)
#define MMAP_CLEARS 1
@@ -702,7 +702,7 @@
*/
#ifndef HAVE_MMAP
-#define HAVE_MMAP 1
+#define HAVE_MMAP 0
#endif
#if HAVE_MMAP
More information about the Cygwin-developers
mailing list