summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/malloc-930716/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen2003-12-301-445/+0
| | | | | | | 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
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-271-2/+2
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Doh!!!Eric Andersen2003-10-171-1/+1
|
* Do not set errno when they asked for size 0Eric Andersen2003-10-161-1/+1
|
* Fix errno values. Fix MALLOC_GLIBC_COMPAT handling in malloc/malloc.c,Eric Andersen2003-09-061-7/+15
| | | | | which was reversed. Provide more consistancy between implementations. Handle it when people do stupid things like malloc(-1);
* Add in a MALLOC_GLIBC_COMPAT option to let people decide if theyEric Andersen2003-08-081-0/+5
| | | | want glibc style malloc(0) behavior
* Kill the needless '#if 1'Eric Andersen2003-01-231-2/+0
|
* split-out memalign and reallocEric Andersen2002-09-051-191/+26
| | | | -Erik
* Make sjhill happy, and revive memalignEric Andersen2002-09-041-2/+60
| | | | -Erik
* __morecore need not be a function pointerEric Andersen2002-07-161-9/+8
|
* Odd. Got a copy of junk in here.Eric Andersen2002-07-161-9/+0
|
* This patch, from Ronald Wahl <rwa@peppercon.com>, fixes theEric Andersen2002-07-011-5/+5
| | | | | spots where I screwed up and forgot to fix realloc to use free_unlocked() instead of free(). Thanks Ronald!
* Rework, reduce the size, add proper lockingEric Andersen2002-06-181-32/+329
| | | | -Erik
* Be more strict with the glibc style malloc implementation. Return NULLEric Andersen2001-04-251-2/+2
| | | | when folks do a malloc(0) using malloc-930716.
* A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.Eric Andersen2001-01-111-0/+254