summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/heap_alloc.c
AgeCommit message (Collapse)Author
2008-10-28Finally fix the MALLOC=y and MALLOC_SIMPLE=y breakage from svn 23660. (I ↵Rob Landley
found it, this is Bernhard's patch to fix it. Tested and it Works For Me (tm)).
2008-10-11Fix bug 4994 hangs on read(). I have tested the patch extensibly on ARM/LT.old.Khem Raj
Thank you Chase Douglas for reporting it and for the patch.
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2007-04-13fix up malloc debug buildingMike Frysinger
2002-07-25Redo the locking, so that it may actually work. Now locking is done atMiles 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-19Rename mutex stuff to use heap-specific names.Miles Bader
Doc fix.
2002-07-18Miles Bader implemented a new mmap based malloc which is muchEric 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!
ea2b81f490d7ae398129085ccd088cef0d6'>(malloc): Use MALLOC_SETUP.Miles Bader 2002-08-14Add flow-control hints with __malloc_likely and __malloc_unlikely.Miles Bader 2002-07-31Update debugging printfs.Miles Bader 2002-07-31Use MALLOC_HEADER_SIZE.Miles Bader 2002-07-30MALLOC_SET_SIZE now takes the user-address rather than the base-address.Miles Bader 2002-07-30Use new malloc header macros.Miles Bader 2002-07-25Size tweaks.Miles Bader 2002-07-25Miscellaneous tidying-up.Miles Bader 2002-07-25Redo the locking, so that it may actually work. Now locking is done atMiles 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-24Misc small cleanups.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-19Doc fix.Miles Bader 2002-07-18Miles Bader implemented a new mmap based malloc which is muchEric 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!