summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/malloc/free.c
Commit message (Collapse)AuthorAgeFilesLines
* trim Experimentally off and uncommented hiddenAustin Foxley2009-09-181-2/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Synch with trunk @ 24165Carmelo Amoroso2008-11-271-2/+2
| | | | | Step 17: libc_hidden_proto removal (almost all). and other minor changes (inline keyword, extra character)
* Synch with trunk @ 24075.Carmelo Amoroso2008-11-171-12/+22
| | | | Step 7: libc/stdlib and malloc
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-091-1/+1
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge from trunk. Going pretty good so far. Kind of. Okay, not really."Steven J. Hill"2006-02-251-4/+3
|
* Big fricking merge from trunk."Steven J. Hill"2006-01-071-0/+1
|
* Big merge from trunk. Stop the madness!"Steven J. Hill"2005-12-061-0/+2
|
* (free_to_heap): Unlock the heap before returning in theMiles Bader2003-04-021-2/+5
| | | | __UCLIBC_UCLINUX_BROKEN_MUNMAP__ case. Fix from YYang1@Winbond.com.tw.
* Improve malloc debugging support.Miles Bader2002-11-211-8/+17
|
* Fix locking to not deadlock when __UCLIBC_UCLINUX_BROKEN_MUNMAP__ is defined.Miles Bader2002-10-151-5/+10
|
* * Add support for uClinux's broken munmap, contingent onMiles Bader2002-10-091-10/+110
| | | | | | | | | __UCLIBC_UCLINUX_BROKEN_MUNMAP__ (which is currently not defined anywhere). This makes other cases a tiny bit less efficient too. * Move the malloc lock into the heap structure (locking is still done at the malloc level though, not by the heap functions). * Initialize the malloc heap to contain a tiny initial static free-area so that programs that only do a very little allocation won't ever call mmap.
* (free):Miles Bader2002-09-041-5/+5
| | | | | Update debug statement. Update to use __heap_delete and __heap_is_empty.
* Use `likely' & `unlikely' instead of the `__malloc_'-prefixed versions.Miles Bader2002-08-301-1/+1
|
* Use __malloc_unlikely instead of `likely'.Miles Bader2002-08-141-1/+4
|
* Use `return' for null pointers, to avoid a giant block holding the restMiles Bader2002-08-131-95/+95
| | | | of the function.
* Update debugging printfs.Miles Bader2002-07-311-2/+2
|
* Use new malloc header macros.Miles Bader2002-07-301-2/+2
|
* Size tweaks.Miles Bader2002-07-251-5/+6
|
* Miscellaneous tidying-up.Miles Bader2002-07-251-12/+9
|
* Redo the locking, so that it may actually work. Now locking is done atMiles Bader2002-07-251-90/+103
| | | | | | | | | 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-9/+104
| | | | | | | | * 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-0/+35
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!