This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
malloc without mmap?
- From: Joe Buehler <jbuehler at hekimian dot com>
- To: Cygwin Developers <cygwin-developers at cygwin dot com>
- Date: Wed, 23 Apr 2003 11:43:36 -0400
- Subject: malloc without mmap?
- Organization: Spirent Communications, Inc.
- Reply-to: jbuehler at hekimian dot com
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