* malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.

* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
This commit is contained in:
Christopher Faylor 2003-02-07 06:15:10 +00:00
parent 44a30b4510
commit bc5b63edab
3 changed files with 11 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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)