summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/malloc-standard/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* POSIX requires that errno be set whenever 0 is returned by malloc()Mike Frysinger2007-04-021-1/+4
|
* rename local "brk" var so it doesnt namespace collide with the brk() functionMike Frysinger2006-12-171-18/+18
|
* Major cleanup of internal mutex locking. Be more consistant in how we doEric Andersen2006-12-071-25/+26
| | | | | | | things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking.
* fix from psm: makes use of the malloc debug option in malloc-standard as wellMike Frysinger2006-08-251-5/+5
|
* Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵Peter S. Mazinger2006-03-101-1/+0
| | | | most of global data relocations are back
* Go __malloc_lock, go ...Peter S. Mazinger2006-02-011-0/+1
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* add support for __MALLOC_GLIBC_COMPAT__ (malloc(0) == NULL) so the malloc ↵Mike Frysinger2005-07-061-0/+4
| | | | test wont fail
* Use MAP_PRIVATE whenever __ARCH_HAS_MMU__ is set.Eric Andersen2004-07-151-2/+2
| | | | Only use MAP_SHARED when mmu-less.
* Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen2003-12-301-0/+1160
Lea. It is about 2x faster than the old malloc-930716, and behave itself much better -- it will properly release memory back to the system, and it uses a combination of brk() for small allocations and mmap() for larger allocations. -Erik