summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/malloc.cc
Commit message (Collapse)AuthorAgeFilesLines
* Only define __getreent inline function when building newlib or CygwinCorinna Vinschen2016-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Commit 6f3943b erroneously removed the `#ifdef _COMPILING_NEWLIB' guarding the __getreent inline function. This patch ignored the fact that config.h is included when building applications, and the code in question requires internal, auto-generated headers to be available which are not exposed to user-space. Reinstantiate defined(_COMPILING_NEWLIB) test and alternatively check for defined (__INSIDE_CYGWIN__), otherwise we'd have to reinstantiate the __getreent macro in cygtls.h which is really confusing. While testing it turned out that a low number of source codes inside Cygwin won't see the inline __getreent due to a missing __INSIDE_CYGWIN__ definition. For malloc.cc this was actually deliberate to get different definitions from including cygmalloc.h. Change this by defining __INSIDE_CYGWIN__ in malloc.cc but changing the test in cygmalloc.h to test for defined(DLMALLOC_VERSION). This might need a change if we ever get around to replace dlmalloc with a newer, more threading-aware malloc implementation. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* * dlmalloc.c: Remove unused file.Corinna Vinschen2014-08-141-1291/+2510
| | | | | * dlmalloc.h: Ditto. * malloc.cc: Update to Doug Lea's malloc version 2.8.6.
* * malloc.cc: Update to version 2.8.3.Christopher Faylor2005-12-101-441/+543
| | | | * cygmalloc.h (MSPACE): Remove unneeded definition.
* * cygmalloc.h (MSPACES): Define. This dropped through the cracks after theChristopher Faylor2005-07-281-1/+1
| | | | | | last malloc update. * dcrt0.cc: Fix a comment. * malloc.cc (internal_malloc): Fix definition so that it can be safely coerced.
* * malloc.cc: Update to version 2.8.2.Christopher Faylor2005-07-051-5/+14
|
* * malloc.cc: Update to Doug Lea's malloc v2.8.0.Christopher Faylor2005-06-051-4416/+3783
|
* * Makefile.in (MALLOC_OFILES): Always fill in with correct malloc object.Christopher Faylor2003-08-311-0/+2
| | | | | | | | | | | | | | | * configure.in: Fill in MALLOC_OFILES with either debugging or regular malloc. * configure: Regenerate. * dlmalloc.c: Make various fruitless changes to attempt to get to work. * dlmalloc.h: Ditto. * malloc.cc (free): Check malloc pool when debugging. * path.cc (win32_device_name): Eliminate compiler warning. * sigproc.cc (sig_dispatch_pending): Remove use of was_pending. Let thisframe.call_signal_handler decide if handler should be called rather than using bogus was_pending check. * exceptions.cc (interrupt_setup): Remove accidentally checked in debugging code. * heap.cc (sbrk): Save rounded addess in user_heap_max.
* * include/cygwin/version.h: Bump DLL minor number.Christopher Faylor2003-02-081-1/+1
| | | | | * malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below changes.
* * malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.Christopher Faylor2003-02-071-0/+2
| | | | * pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
* * malloc.cc: Protect some definitions to avoid a compile time warning.Christopher Faylor2002-08-281-0/+4
|
* * perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.Christopher Faylor2002-08-181-1/+2
| | | | | | | | | | | | | | | | | (vfork_save::restore_pid): New method. (vfork_save::restore_exit): New method. * fork.cc (vfork): Save ctty, sid, pgid and restore them when returning to "parent". Use exitval field if exiting but never created a new process. * syscalls.cc (setsid): Detect when in "vfork" and force an actual fork so that pid will be allocated (UGLY!). (getsid): New function. * dcrt0.cc (do_exit): Use vfork_save::restore_exit method for returning from a vfork. * spawn.cc (spawnve): Use vfork_save::{restore_pid,restore_exit} methods for returning from vfork. * cygwin.din: Export getsid. * include/cygwin/version.h: Bump api minor number. * malloc.cc: #ifdef sYSTRIm for when MORECORE_CANNOT_TRIM is true.
* * malloc.cc: Update to 2.7.2.Christopher Faylor2002-08-181-5/+8
| | | | | * malloc_wrapper.cc (malloc_init): Call user level mallocs to determine if the malloc has been wrapped.
* * Makefile.in: Add support for new malloc.o and renamed malloc_wrapper.o. UseChristopher Faylor2002-08-161-0/+5574
-fomit-frame-pointer for malloc.o compilation. * malloc_wrapper.cc: New file. Rename from malloc.cc. Add support for more malloc functions. Eliminate export_* calls. Just use straight malloc names. Remove unused argument from malloc lock functions. * cygwin.din: Just export straight malloc names. Add malloc_stats, malloc_trim, malloc_usable_size, mallopt, memalign, valloc. * dcrt0.cc (__cygwin_user): Eliminate export_* malloc entries. * fork.cc (fork_parent): Remove unused argument from malloc_lock argument. * malloc.cc: New file. Doug Lea's malloc v2.7.1. * cygmalloc.h: New file. * include/cygwin/version.h: Bump API_MINOR. * sync.h (muto::acquire): Use appropriate number for regparm attribute. (muto::reset): Ditto. (muto::release): Ditto.