summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/malloc-simple/alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* trim Experimentally off and uncommented hiddenAustin Foxley2009-09-181-4/+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-1/+2
| | | | Step 7: libc/stdlib and malloc
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-091-16/+14
| | | | 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>
* Fix Makefile.in and synch them with trunk. Signed-off-by: Carmelo Amoroso ↵Carmelo Amoroso2007-11-201-2/+4
| | | | <carmelo.amoroso@st.com>
* Merge from trunk. Going pretty good so far. Kind of. Okay, not really."Steven J. Hill"2006-02-251-9/+11
|
* Merge from trunk."Steven J. Hill"2005-12-101-0/+1
|
* Big merge from trunk. Stop the madness!"Steven J. Hill"2005-12-061-6/+5
|
* Merge from trunk."Steven J. Hill"2005-12-021-2/+2
|
* Finalize the merge from the trunk. There are more files to be"Steven J. Hill"2005-07-301-104/+85
| | | | merged, but they will be done manually.
* Use MAP_PRIVATE whenever __ARCH_HAS_MMU__ is set.Eric Andersen2004-07-151-2/+2
| | | | Only use MAP_SHARED when mmu-less.
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-161-4/+4
|
* Include missing errno.h header (as noted by Alan Hourihane).Eric Andersen2004-01-141-3/+5
| | | | | Fix uninitialized pthread mutex used to lock the list of aligned memory blocks.
* Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen2003-12-301-7/+22
| | | | | | | Lea. It is about 2x faster than the old malloc-930716, and behave itself much better -- it will properly release memory back to the system, and it uses a combination of brk() for small allocations and mmap() for larger allocations. -Erik
* Update and restore malloc-simple. Slow as molasses, but triviallyEric Andersen2003-12-301-0/+189
| | | | | simple and releases memory immediately when asked to do so. -Erik
* Miles Bader implemented a new mmap based malloc which is muchEric Andersen2002-07-181-141/+0
| | | | | | | 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!
* Patch from Ronald Wahl <rwa@peppercon.com> to fix a memory leakEric Andersen2002-07-101-1/+1
|
* Fix simple malloc to work on systems with an MMUDavid McCullough2002-01-171-9/+31
|
* Fix a couple of warningsDavid McCullough2001-08-091-2/+2
|
* Patch from Tom Walsh <tom@cyberiansoftware.com> to fix a thinkoEric Andersen2001-04-271-1/+2
| | | | on my patch.
* Be more strict with the malloc implementation. Return NULLEric Andersen2001-04-251-5/+10
| | | | | when folks do a malloc(0) using malloc-simple. -Erik
* Fix up breakage resulting from flipping the sense of some defines. Change fromEric Andersen2001-03-191-3/+4
| | | | | | | | 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
* Use MAP_FAILED.Eric Andersen2001-02-131-1/+1
|
* Patch from James Graves <jgraves@deltamobile.com> to better handle m68k.Eric Andersen2001-01-121-2/+4
| | | | | | Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik
* Finish reorganizing things. At least I think I've finished.Eric Andersen2000-10-111-2/+6
|
* Bug ugly formatting updateEric Andersen2000-10-091-0/+106