summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/malloc-standard/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* 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