Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Account for MALLOC_HEADER_SIZE when calculating new size. | Miles Bader | 2002-07-31 | 1 | -3/+4 | |
| | ||||||
* | Use MALLOC_HEADER_SIZE. | Miles Bader | 2002-07-31 | 1 | -1/+1 | |
| | ||||||
* | (MALLOC_HEADER_SIZE): New macro. | Miles Bader | 2002-07-31 | 1 | -2/+6 | |
| | | | | (MALLOC_BASE, MALLOC_ADDR): Use it. | |||||
* | Make sure NEW_SIZE is a multiple of HEAP_GRANULARITY. | Miles Bader | 2002-07-30 | 1 | -2/+2 | |
| | | | | Calculate amount freed when shrinking correctly. | |||||
* | Update the size of grown/shrunk allocations. | Miles Bader | 2002-07-30 | 1 | -16/+16 | |
| | | | | MALLOC_SET_SIZE now takes the user-address rather than the base-address. | |||||
* | MALLOC_SET_SIZE now takes the user-address rather than the base-address. | Miles Bader | 2002-07-30 | 1 | -2/+1 | |
| | ||||||
* | Define MALLOC_SET_SIZE to take the user-address rather than the base-address. | Miles Bader | 2002-07-30 | 1 | -2/+2 | |
| | ||||||
* | Implement shrinking. | Miles Bader | 2002-07-30 | 1 | -6/+19 | |
| | | | | | Fix bug when growing an allocation. Use new malloc header macros. | |||||
* | Use new malloc header macros. | Miles Bader | 2002-07-30 | 2 | -5/+6 | |
| | ||||||
* | Add macros to abstract the malloc header format a bit. | Miles Bader | 2002-07-30 | 1 | -1/+22 | |
| | ||||||
* | Size tweaks. | Miles Bader | 2002-07-25 | 3 | -15/+17 | |
| | ||||||
* | Miscellaneous tidying-up. | Miles Bader | 2002-07-25 | 2 | -13/+10 | |
| | ||||||
* | Redo the locking, so that it may actually work. Now locking is done at | Miles Bader | 2002-07-25 | 8 | -130/+186 | |
| | | | | | | | | | 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. | |||||
* | Factor out some common code sequences into inline functions. | Miles Bader | 2002-07-24 | 2 | -53/+74 | |
| | ||||||
* | Misc small cleanups. | Miles Bader | 2002-07-24 | 3 | -4/+6 | |
| | ||||||
* | Remove, since it's entirely incorrect | Miles Bader | 2002-07-24 | 1 | -33/+0 | |
| | ||||||
* | * Automatically try to unmap heap free-areas when they get very big. | Miles Bader | 2002-07-23 | 8 | -190/+234 | |
| | | | | | | | | * 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. | |||||
* | Doc fix. | Miles Bader | 2002-07-19 | 5 | -5/+5 | |
| | ||||||
* | Rename mutex stuff to use heap-specific names. | Miles Bader | 2002-07-19 | 5 | -24/+26 | |
| | | | | Doc fix. | |||||
* | Miles Bader implemented a new mmap based malloc which is much | Eric Andersen | 2002-07-18 | 13 | -1169/+740 | |
| | | | | | | | 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! | |||||
* | We don't need the debug versions | Eric Andersen | 2002-07-16 | 1 | -2/+2 | |
| | ||||||
* | Update my email address. I am no longer andersen@lineo.com | Eric Andersen | 2001-12-19 | 1 | -0/+1 | |
| | ||||||
* | Minor cleanup | Eric Andersen | 2001-09-29 | 2 | -2/+3 | |
| | ||||||
* | Update to accomodate the header file changes | Eric Andersen | 2001-09-27 | 1 | -1/+1 | |
| | ||||||
* | Ok, this should finish off my massive ro-organization. The source | Eric Andersen | 2001-05-12 | 1 | -2/+1 | |
| | | | | | | | | | 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 | |||||
* | A patch from Matthias Kilian <kili@outback.escape.de> to fix -DDEBUG_MALLOC | Eric Andersen | 2001-05-11 | 2 | -1/+12 | |
| | | | | | so that it works for realloc too. -Erik | |||||
* | Fix up breakage resulting from flipping the sense of some defines. Change from | Eric Andersen | 2001-03-19 | 1 | -9/+10 | |
| | | | | | | | | 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 | |||||
* | Update to "malloc" so it will work on CPUs not supporting non-aligned words. | Eric Andersen | 2001-02-21 | 1 | -7/+35 | |
| | | | | malloc still only works for little-endian CPUs... Patch by Jean-Yves Avenard | |||||
* | Reduce dependancies -- don't use sysconf() internal to libc. | Eric Andersen | 2001-01-15 | 1 | -38/+0 | |
| | ||||||
* | "I will always compile before I commit." | Eric Andersen | 2001-01-12 | 1 | -2/+2 | |
| | | | | | | "I will always compile before I commit." "I will always compile before I commit." -Erik | |||||
* | Patch from James Graves <jgraves@deltamobile.com> to better handle m68k. | Eric Andersen | 2001-01-12 | 1 | -2/+13 | |
| | | | | | | Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik | |||||
* | Update makefile to match the new malloc code | Eric Andersen | 2001-01-12 | 1 | -6/+8 | |
| | ||||||
* | Manuel Novoa III modified malloc.c and avlmacro.h to reduce code size by | Eric Andersen | 2001-01-12 | 3 | -610/+731 | |
| | | | | | using functions instead on Inlining (size vas speed tradeoff). I ran the results through indent. Looking pretty good IMHO. | |||||
* | A large update from Manuel Novoa III <mnovoa3@bellsouth.net>. | Eric Andersen | 2001-01-11 | 1 | -2/+2 | |
| | ||||||
* | A bunch of updates, part from Manuel Novoa III (such as more long long | Eric Andersen | 2001-01-01 | 2 | -4/+4 | |
| | | | | | support), and other updates by me (better cross platform, cross-compiler, etc, support. Now compiles with 2.0.x kernels for armnommu. | |||||
* | Fix doc blunder. | Eric Andersen | 2000-11-04 | 1 | -4/+4 | |
| | ||||||
* | Make spelling of uClibc be consistant. | Eric Andersen | 2000-11-04 | 1 | -1/+1 | |
| | ||||||
* | More cleanups. Fix things so tinylogin compiles. | Eric Andersen | 2000-11-04 | 1 | -2/+1 | |
| | | | | Fix a bug in getdelim -- patch from David Whedon <dwhedon@gordian.com>. | |||||
* | Strip all object files of all non global symbols and .note and | Eric Andersen | 2000-10-20 | 1 | -1/+4 | |
| | | | | | .comment, saving a lot of space in the resultant binaries... -Erik | |||||
* | Screwed up non-mmu support. #define was backwards. | Eric Andersen | 2000-10-12 | 2 | -4/+3 | |
| | | | | -Erik | |||||
* | Finish reorganizing things. At least I think I've finished. | Eric Andersen | 2000-10-11 | 2 | -2/+8 | |
| | ||||||
* | Bug ugly formatting update | Eric Andersen | 2000-10-09 | 2 | -4/+61 | |
| | ||||||
* | New malloc routines. | Eric Andersen | 2000-10-08 | 5 | -216/+1019 | |
| | ||||||
* | Warning cleanup | Eric Andersen | 2000-10-07 | 1 | -3/+4 | |
| | ||||||
* | Fix all the makefiles. Clean up some warnings, cleanup some headers. | Eric Andersen | 2000-10-04 | 1 | -8/+24 | |
| | | | | -Erik | |||||
* | Sanity fix. | Eric Andersen | 2000-10-04 | 1 | -7/+5 | |
| | ||||||
* | Many bugfixes, header cleanups, etc. Added abort and glob. | Eric Andersen | 2000-07-05 | 1 | -4/+1 | |
| | | | | | It is getting closer... -Erik | |||||
* | Fix up the makefiles. malloc-simple/Makefile forgot to include realloc. | Eric Andersen | 2000-06-29 | 1 | -1/+1 | |
| | | | | | test/Makefile used a hard coded absolute path (bad, bad, bad). -Erik | |||||
* | Implimented a simple allocation system that does not waste memory. | Ron Alder | 2000-06-15 | 1 | -7/+132 | |
| | | | | Added realloc. The allocation system was needed to support realloc. | |||||
* | Fixed the parameters to mmap in malloc. | Ron Alder | 2000-06-13 | 1 | -1/+1 | |
| | | | | | malloc now works, but wastes alot of memory with the minimum amount of memory used for each allocation being 4k. |