This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

malloc without mmap?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]