summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-02-07 06:15:10 +0000
committerChristopher Faylor <me@cgf.cx>2003-02-07 06:15:10 +0000
commitbc5b63edab6415566ae8085c10014312d722b0dd (patch)
tree82cd6187d913b81c19a8494a68b2c22f250be7c3 /winsup
parent44a30b45104e6198875176d9ca742a4c6ca527a5 (diff)
downloadcygnal-bc5b63edab6415566ae8085c10014312d722b0dd.tar.gz
cygnal-bc5b63edab6415566ae8085c10014312d722b0dd.tar.bz2
cygnal-bc5b63edab6415566ae8085c10014312d722b0dd.zip
* malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog8
-rw-r--r--winsup/cygwin/malloc.cc2
-rw-r--r--winsup/cygwin/pipe.cc1
3 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 66659206a..72f47f442 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,11 @@
+2003-02-07 Christopher Faylor <cgf@redhat.com>
+
+ * malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
+
+2003-02-07 Christopher Faylor <cgf@redhat.com>
+
+ * pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
+
2003-02-06 Christopher Faylor <cgf@redhat.com>
* heap.cc (heap_init): Remove debugging code.
diff --git a/winsup/cygwin/malloc.cc b/winsup/cygwin/malloc.cc
index 2e0a5cce0..85965c068 100644
--- a/winsup/cygwin/malloc.cc
+++ b/winsup/cygwin/malloc.cc
@@ -1455,6 +1455,8 @@ void public_mSTATs();
#define M_MMAP_THRESHOLD -3
+#define DEFAULT_MMAP_THRESHOLD (128 * 1024 * 1024)
+
#ifndef DEFAULT_MMAP_THRESHOLD
#define DEFAULT_MMAP_THRESHOLD (256 * 1024)
#endif
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 05b6c6f1d..f131fd43f 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -86,6 +86,7 @@ fhandler_pipe::read (void *in_ptr, size_t& in_len)
int fhandler_pipe::close ()
{
int res = fhandler_base::close ();
+#undef guard
if (guard)
CloseHandle (guard);
if (writepipe_exists)