summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-930716/malloc.c
AgeCommit message (Collapse)Author
2003-12-30Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen
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
2003-12-27Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III
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.
2003-10-17Doh!!!Eric Andersen
2003-10-16Do not set errno when they asked for size 0Eric Andersen
2003-09-06Fix errno values. Fix MALLOC_GLIBC_COMPAT handling in malloc/malloc.c,Eric Andersen
which was reversed. Provide more consistancy between implementations. Handle it when people do stupid things like malloc(-1);
2003-08-08Add in a MALLOC_GLIBC_COMPAT option to let people decide if theyEric Andersen
want glibc style malloc(0) behavior
2003-01-23Kill the needless '#if 1'Eric Andersen
2002-09-05split-out memalign and reallocEric Andersen
-Erik
2002-09-04Make sjhill happy, and revive memalignEric Andersen
-Erik
2002-07-16__morecore need not be a function pointerEric Andersen
2002-07-16Odd. Got a copy of junk in here.Eric Andersen
2002-07-01This patch, from Ronald Wahl <rwa@peppercon.com>, fixes theEric Andersen
spots where I screwed up and forgot to fix realloc to use free_unlocked() instead of free(). Thanks Ronald!
2002-06-18Rework, reduce the size, add proper lockingEric Andersen
-Erik
2001-04-25Be more strict with the glibc style malloc implementation. Return NULLEric Andersen
when folks do a malloc(0) using malloc-930716.
2001-01-11A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.Eric Andersen