OSDN Git Service

Rework malloc. The new default implementation is based on dlmalloc from Doug
authorEric Andersen <andersen@codepoet.org>
Tue, 30 Dec 2003 10:40:49 +0000 (10:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 30 Dec 2003 10:40:49 +0000 (10:40 -0000)
commit8d532c51318bad2436880ecac972c9dfa3996c9b
tree821863358734242feb99643e9d66ee9b175ad464
parent4c9086ee4afde4257a4b4a8f55e05932d1b6acfd
Rework malloc.  The new default implementation is based on dlmalloc from Doug
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
20 files changed:
debian/config
extra/Configs/Config.in
libc/stdlib/Makefile
libc/stdlib/malloc-930716/README [deleted file]
libc/stdlib/malloc-930716/malloc.c [deleted file]
libc/stdlib/malloc-930716/malloc.h [deleted file]
libc/stdlib/malloc-930716/memalign.c [deleted file]
libc/stdlib/malloc-930716/realloc.c [deleted file]
libc/stdlib/malloc-simple/alloc.c
libc/stdlib/malloc-standard/Makefile [moved from libc/stdlib/malloc-930716/Makefile with 81% similarity]
libc/stdlib/malloc-standard/calloc.c [new file with mode: 0644]
libc/stdlib/malloc-standard/free.c [new file with mode: 0644]
libc/stdlib/malloc-standard/mallinfo.c [new file with mode: 0644]
libc/stdlib/malloc-standard/malloc.c [new file with mode: 0644]
libc/stdlib/malloc-standard/malloc.h [new file with mode: 0644]
libc/stdlib/malloc-standard/mallopt.c [new file with mode: 0644]
libc/stdlib/malloc-standard/memalign.c [new file with mode: 0644]
libc/stdlib/malloc-standard/realloc.c [new file with mode: 0644]
libc/stdlib/malloc/Makefile
libc/stdlib/malloc/calloc.c [moved from libc/stdlib/calloc.c with 100% similarity]