summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/malloc-standard
Commit message (Collapse)AuthorAgeFilesLines
* malloc-standard: synchronize on forkTimo Teräs2011-12-231-0/+17
| | | | | | | | Otherwise other threads can leave malloc state locked, and the child will hang indefinitely if it tries to malloc something. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
* malloc: simplify MAP_UNINITIALIZE ifdef logicMike Frysinger2010-07-271-7/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prettify make cleanBernhard Reutner-Fischer2010-03-251-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nommu: use MAP_UNINITIALIZE for mallocsMike Frysinger2009-11-231-1/+1
| | | | | | | | | Now that the kernel supports MAP_UNINITIALIZE, have the malloc places use it to get real uninitialized memory on no-mmu systems. This avoids a lot of normally useless overhead involved in zeroing out all of the memory (sometimes multiple times). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-185-10/+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: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-204-4/+4
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-201-2/+2
|
* libc_hidden_proto removal, a few more functionsDenis Vlasenko2008-11-181-1/+1
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-1/+1
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-071-4/+4
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-1/+1
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-192-2/+2
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* POSIX requires that errno be set whenever 0 is returned by malloc()Mike Frysinger2007-04-021-1/+4
|
* rename local "brk" var so it doesnt namespace collide with the brk() functionMike Frysinger2006-12-171-18/+18
|
* Major cleanup of internal mutex locking. Be more consistant in how we doEric Andersen2006-12-078-73/+98
| | | | | | | things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking.
* fix from psm: makes use of the malloc debug option in malloc-standard as wellMike Frysinger2006-08-253-12/+7
|
* fixup my copyright notice, trim stale remnants of older notices whichEric Andersen2006-07-051-1/+0
| | | | I had clearly run search/replace on that were cluttering things up.
* Fix 'realloc' and revert previous changes to tests. malloc tests all pass ↵"Steven J. Hill"2006-03-171-1/+1
| | | | regardless of the setting of MALLOC_GLIBC_COMPAT.
* Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵Peter S. Mazinger2006-03-103-3/+0
| | | | most of global data relocations are back
* tweak the idea between having a MMU and actually using itMike Frysinger2006-02-181-1/+1
|
* libc-{a,so,multi}-y replaced by libc-y covering common objects both in ↵Peter S. Mazinger2006-02-131-12/+9
| | | | libc.a/libc.so, the diffs go into libc-static-y/libc-shared-y exclusively, add IMA to libc, don't use any MSRC anymore
* just drop all of the debug codeMike Frysinger2006-02-091-2/+1
|
* Bernhard Fischer says: get rid of local ret variableMike Frysinger2006-02-081-3/+1
|
* Go __malloc_lock, go ...Peter S. Mazinger2006-02-012-0/+2
|
* rename local var brk to _brkMike Frysinger2006-01-311-6/+6
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* Last relocs jump and global data, (even locales) that I could remove are ↵Peter S. Mazinger2006-01-161-0/+1
| | | | gone from libc. The remaining are left as exercise for others ;-)
* make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger2006-01-141-1/+1
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-145-16/+18
| | | | missing headers, other jump relocs removed
* fix signed/unsigned warningMike Frysinger2005-12-271-1/+1
|
* __malloc_consolidate is only libc internal, enable use of __sbrkPeter S. Mazinger2005-12-132-2/+3
|
* mmap/mremap/socket/rewind gonePeter S. Mazinger2005-12-082-0/+3
|
* Hide mallinfoPeter S. Mazinger2005-12-081-2/+3
|
* macro out the thread funcs in libc if threading is disabledMike Frysinger2005-12-061-6/+3
|
* More hiding, 300 leftPeter S. Mazinger2005-12-041-0/+2
|
* Hide mostly used functionsPeter S. Mazinger2005-12-012-4/+4
|
* Hiding againPeter S. Mazinger2005-11-291-0/+2
|
* Remove TOPDIRPeter S. Mazinger2005-11-211-3/+1
|
* Remove last unused references to libc-a-pic-, we use only the lists in ↵Peter S. Mazinger2005-11-011-1/+0
| | | | libc-a-y for objects that go into static libs, changing their suffix to .os, of they should be PIC
* Replace all Makefiles for new build infrastucturePeter S. Mazinger2005-10-291-47/+8
|
* All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other ↵Peter S. Mazinger2005-10-251-0/+33
| | | | archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
* Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all ↵Peter S. Mazinger2005-10-121-13/+11
| | | | objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
* Clean up pthread include mess. Some of these will be needed to support NPTL, ↵"Steven J. Hill"2005-10-041-0/+6
| | | | but they do no harm for the linuxthreads case. Yes, I tested this.
* add support for __MALLOC_GLIBC_COMPAT__ (malloc(0) == NULL) so the malloc ↵Mike Frysinger2005-07-061-0/+4
| | | | test wont fail
* merge parallel build supportMike Frysinger2005-01-251-5/+4
|
* Avoid compiler warnings.Peter Kjellerstedt2005-01-192-43/+43
|
* Some requested additional malloc entry pointsEric Andersen2004-11-082-0/+56
|
* Mike Frysinger writes:Eric Andersen2004-08-251-0/+3
| | | | | | | | | | | this was sent earlier in a different form: http://www.uclibc.org/lists/uclibc/2004-January/008136.html find attached a smaller version ... perhaps adding a fprintf to stderr before calling abort would be nice like in the glibc patch, but whatever glibc has since adopted a similar fix for their malloc (third hunk, line 1970) http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/malloc/malloc.c.diff?r1=1.121&r2=1.122&cvsroot=glibc&f=h -mike
* _SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZEEric Andersen2004-07-151-1/+1
| | | | instead, but we are not such a system and should not propagate such things.