Age | Commit message (Collapse) | Author | |
---|---|---|---|
2002-08-19 | (realloc): Follow new arg conventions of MALLOC_SET_SIZE. | Miles Bader | |
2002-08-19 | (malloc): Use MALLOC_SETUP. | Miles Bader | |
2002-08-19 | (MALLOC_SETUP): New macro. | Miles Bader | |
(MALLOC_SET_SIZE): Take the base-address of the block, not the user-address. (MALLOC_ADDR): Macro removed. | |||
2002-08-14 | Use __malloc_unlikely instead of `likely'. | Miles Bader | |
2002-08-14 | Add flow-control hints with __malloc_likely and __malloc_unlikely. | Miles Bader | |
2002-08-14 | (__malloc_likely, __malloc_unlikely): New macros. | Miles Bader | |
2002-08-14 | Handle zero NEW_SIZE case. | Miles Bader | |
2002-08-13 | Use `return' for null pointers, to avoid a giant block holding the rest | Miles Bader | |
of the function. | |||
2002-08-07 | Per suggestion from Miles Bader, move calloc.c to libc/stdlib. | Eric Andersen | |
Also, Manuel notices that I forgot to check for when nmemb=0, which would result in a segfault, so fix that case as well. -Erik | |||
2002-08-06 | Unify calloc (its the same thing regardless of the underlying | Eric Andersen | |
malloc implementation). Fix problem reported to bugtraq about problems with integer overflow that can occur during the computation of the memory region size by calloc (and similar functions) which could result in a subsequent buffer overflow. -Erik | |||
2002-08-01 | Use MALLOC_REALLOC_MIN_FREE_SIZE. | Miles Bader | |
2002-08-01 | (MALLOC_REALLOC_MIN_FREE_SIZE): New macro. | Miles Bader | |
Enable debugging if MALLOC_DEBUGGING is defined. | |||
2002-08-01 | (HEAP_MIN_SIZE): New macro. | Miles Bader | |
(HEAP_MIN_FREE_AREA_SIZE): Increase size. Enable debugging if HEAP_DEBUGGING is defined. | |||
2002-07-31 | In the allocate-and-copy case, don't include the malloc header in our | Miles Bader | |
size calculations. | |||
2002-07-31 | Update debugging printfs. | Miles Bader | |
2002-07-31 | Account for MALLOC_HEADER_SIZE when calculating new size. | Miles Bader | |
2002-07-31 | Use MALLOC_HEADER_SIZE. | Miles Bader | |
2002-07-31 | (MALLOC_HEADER_SIZE): New macro. | Miles Bader | |
(MALLOC_BASE, MALLOC_ADDR): Use it. | |||
2002-07-30 | Make sure NEW_SIZE is a multiple of HEAP_GRANULARITY. | Miles Bader | |
Calculate amount freed when shrinking correctly. | |||
2002-07-30 | Update the size of grown/shrunk allocations. | Miles Bader | |
MALLOC_SET_SIZE now takes the user-address rather than the base-address. | |||
2002-07-30 | MALLOC_SET_SIZE now takes the user-address rather than the base-address. | Miles Bader | |
2002-07-30 | Define MALLOC_SET_SIZE to take the user-address rather than the base-address. | Miles Bader | |
2002-07-30 | Implement shrinking. | Miles Bader | |
Fix bug when growing an allocation. Use new malloc header macros. | |||
2002-07-30 | Use new malloc header macros. | Miles Bader | |
2002-07-30 | Add macros to abstract the malloc header format a bit. | Miles Bader | |
2002-07-25 | Size tweaks. | Miles Bader | |
2002-07-25 | Miscellaneous tidying-up. | Miles Bader | |
2002-07-25 | Redo the locking, so that it may actually work. Now locking is done at | Miles Bader | |
the malloc/free level, not within the heap abstraction, and there's a separate lock to control sbrk access. Also, get rid of the separate `unmap_free_area' function in free.c, and just put the code in the `free' function directly, which saves a bunch of space (even compared to using an inline function) for some reason. | |||
2002-07-24 | Factor out some common code sequences into inline functions. | Miles Bader | |
2002-07-24 | Misc small cleanups. | Miles Bader | |
2002-07-24 | Remove, since it's entirely incorrect | Miles Bader | |
2002-07-23 | * Automatically try to unmap heap free-areas when they get very big. | Miles Bader | |
* Instead of using mmap/munmap directly for large allocations, just use the heap for everything (this is reasonable now that heap memory can be unmapped). * Use sbrk instead of mmap/munmap on systems with an MMU. | |||
2002-07-19 | Doc fix. | Miles Bader | |
2002-07-19 | Rename mutex stuff to use heap-specific names. | Miles Bader | |
Doc fix. | |||
2002-07-18 | Miles Bader implemented a new mmap based malloc which is much | Eric Andersen | |
smarter than the old "malloc-simple", and actually works, unlike the old "malloc". So kill the old "malloc-simple" and the old "malloc" and replace them with Miles' new malloc implementation. Update Config files to match. Thanks Miles! | |||
2002-07-16 | We don't need the debug versions | Eric Andersen | |
2001-12-19 | Update my email address. I am no longer andersen@lineo.com | Eric Andersen | |
2001-09-29 | Minor cleanup | Eric Andersen | |
2001-09-27 | Update to accomodate the header file changes | Eric Andersen | |
2001-05-12 | Ok, this should finish off my massive ro-organization. The source | Eric Andersen | |
tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik | |||
2001-05-11 | A patch from Matthias Kilian <kili@outback.escape.de> to fix -DDEBUG_MALLOC | Eric Andersen | |
so that it works for realloc too. -Erik | |||
2001-03-19 | Fix up breakage resulting from flipping the sense of some defines. Change from | Eric Andersen | |
defining things to "0" in the disabled case to outright undefining them, lest code that does an "#ifdef FOO" get inadvertantly triggered. Remove now unneeded lines from Rules.mak which makes the command line smaller and avoids redundancy (since this stuff is now pulled in via features.h). -Erik | |||
2001-02-21 | Update to "malloc" so it will work on CPUs not supporting non-aligned words. | Eric Andersen | |
malloc still only works for little-endian CPUs... Patch by Jean-Yves Avenard | |||
2001-01-15 | Reduce dependancies -- don't use sysconf() internal to libc. | Eric Andersen | |
2001-01-12 | "I will always compile before I commit." | Eric Andersen | |
"I will always compile before I commit." "I will always compile before I commit." -Erik | |||
2001-01-12 | Patch from James Graves <jgraves@deltamobile.com> to better handle m68k. | Eric Andersen | |
Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik | |||
2001-01-12 | Update makefile to match the new malloc code | Eric Andersen | |
2001-01-12 | Manuel Novoa III modified malloc.c and avlmacro.h to reduce code size by | Eric Andersen | |
using functions instead on Inlining (size vas speed tradeoff). I ran the results through indent. Looking pretty good IMHO. | |||
2001-01-11 | A large update from Manuel Novoa III <mnovoa3@bellsouth.net>. | Eric Andersen | |
2001-01-01 | A bunch of updates, part from Manuel Novoa III (such as more long long | Eric Andersen | |
support), and other updates by me (better cross platform, cross-compiler, etc, support. Now compiles with 2.0.x kernels for armnommu. |