summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/malloc/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Update debugging printfs.Miles Bader2002-07-311-1/+1
|
* Use MALLOC_HEADER_SIZE.Miles Bader2002-07-311-1/+1
|
* MALLOC_SET_SIZE now takes the user-address rather than the base-address.Miles Bader2002-07-301-2/+1
|
* Use new malloc header macros.Miles Bader2002-07-301-3/+4
|
* Size tweaks.Miles Bader2002-07-251-3/+4
|
* Miscellaneous tidying-up.Miles Bader2002-07-251-1/+1
|
* Redo the locking, so that it may actually work. Now locking is done atMiles Bader2002-07-251-8/+41
| | | | | | | | | 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.
* Misc small cleanups.Miles Bader2002-07-241-1/+2
|
* * Automatically try to unmap heap free-areas when they get very big.Miles Bader2002-07-231-60/+50
| | | | | | | | * 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 Bader2002-07-191-1/+1
|
* Miles Bader implemented a new mmap based malloc which is muchEric Andersen2002-07-181-867/+94
| | | | | | | 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!
* Minor cleanupEric Andersen2001-09-291-1/+2
|
* Update to accomodate the header file changesEric Andersen2001-09-271-1/+1
|
* Fix up breakage resulting from flipping the sense of some defines. Change fromEric Andersen2001-03-191-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 Andersen2001-02-211-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 Andersen2001-01-151-38/+0
|
* "I will always compile before I commit."Eric Andersen2001-01-121-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 Andersen2001-01-121-2/+13
| | | | | | Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik
* Manuel Novoa III modified malloc.c and avlmacro.h to reduce code size byEric Andersen2001-01-121-534/+642
| | | | | using functions instead on Inlining (size vas speed tradeoff). I ran the results through indent. Looking pretty good IMHO.
* A bunch of updates, part from Manuel Novoa III (such as more long longEric Andersen2001-01-011-2/+2
| | | | | support), and other updates by me (better cross platform, cross-compiler, etc, support. Now compiles with 2.0.x kernels for armnommu.
* More cleanups. Fix things so tinylogin compiles.Eric Andersen2000-11-041-2/+1
| | | | Fix a bug in getdelim -- patch from David Whedon <dwhedon@gordian.com>.
* Screwed up non-mmu support. #define was backwards.Eric Andersen2000-10-121-3/+2
| | | | -Erik
* Finish reorganizing things. At least I think I've finished.Eric Andersen2000-10-111-1/+7
|
* New malloc routines.Eric Andersen2000-10-081-0/+765