summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2010-01-13New options 'S', as a shorthand for the options most suitable as anOtto Moerbeek
2009-12-16save calls to arc4random() by using a nibble at a time; not becauseOtto Moerbeek
2009-12-07Make userland malloc use __LDPGSZ granularity on mips, regardless of theMiod Vallat
2009-11-27Switch the chunk_info lists to doubly-linked lists and use the queueOtto Moerbeek
2009-11-27Don't forget to fill region from the cache with junk if needed in one case;Otto Moerbeek
2009-11-27No need to clear a mmapped region; from Fabien Romano and JonathanOtto Moerbeek
2009-11-02permit -DMALLOC_STATS to compile againTodd T. Fries
2009-10-20Check mmap return value against MAP_FAILED not NULL.Paul Irofti
2009-06-08quieten compiler by converting pointers to uintptr_t before truncating themTheo de Raadt
2009-01-03reintroduce extra malloc protections, but avoiding the use ofDamien Miller
2008-12-31PAGE_SIZE is not a valid symbol to use in that way. In particular,Theo de Raadt
2008-12-30Remove mprotecting of struct dir_info introduced in previous commitDamien Miller
2008-12-29extra paranoia for malloc(3):Damien Miller
2008-12-15shave off more bytes than you expect by declaring a few const local arraysOtto Moerbeek
2008-11-20move allocations between half a page and a page as close to the end ofOtto Moerbeek
2008-11-20Reduce the leeway malloc allows when moving allocations to the end ofOtto Moerbeek
2008-11-13To allow for easier playing with more strict settings introduceOtto Moerbeek
2008-11-12avoid a few strlen calls for constant strings; prompted by tg; ok djm@Otto Moerbeek
2008-11-06if the freeprot flag (F) is set, do not do delayed frees for chunksOtto Moerbeek
2008-11-02remove distinction between warnings and errors, ok deraadt@ djm@Otto Moerbeek
2008-10-29if MALLOC_STATS is defined, record how many "cheap reallocs" wereOtto Moerbeek
2008-10-20oops, assign errno the right way. caught by david running regress testsOtto Moerbeek
2008-10-03reduce rbyte cache to 512 bytes, no measurable slowdown (even in theOtto Moerbeek
2008-10-03save and restore errno on success. while it is not stricly needed forOtto Moerbeek
2008-10-03when increasing the size of a larger than a page allocation tryOtto Moerbeek
2008-10-03avoid spitting up regions when purging stuff from the cache, it putsOtto Moerbeek
2008-08-25Make all combinations of G, P, J and zero-fill work with as littleOtto Moerbeek
2008-08-23unbreak MALLOC_OPTIONS=G that I broke in my last commit;Damien Miller
2008-08-23fix calloc() for MALLOC_OPTIONS=J case: SOME_JUNK was being filled intoDamien Miller
2008-08-22make sure we always map and unmap multiples of MALLOC_PAGESIZE;Otto Moerbeek
2008-08-22Smarter implementation of calloc(3), which uses the fact that mmap(2)Otto Moerbeek
2008-08-07small cleanup of error/warning stringsOtto Moerbeek
2008-07-28Almost complete rewrite of malloc, to have a more efficient dataOtto Moerbeek
2008-06-13remove _MALLOC_LOCK_INIT; major bump; ok deraadt@Otto Moerbeek
2008-05-19remove recalloc(3); it is buggy and impossible to repair without bigOtto Moerbeek
2008-04-13Use arc4random_buf() when requesting more than a single word of outputDamien Miller
2008-02-20use pgfree pool like other code does to reserve free list slots.Otto Moerbeek
2007-09-03add recaloc(3)Todd C. Miller
2007-02-12get cheaper random bytes, less waste and no getpid() calls, which areOtto Moerbeek
2006-12-19a failed mmap returns MAP_FAILED, not NULL. found while exercising paxOtto Moerbeek
2006-10-24respond to ben hawkes's ruxcon presentation.Ted Unangst
2006-05-14Fix the second malloc_ulimit regression: maintaining the free listOtto Moerbeek
2006-04-24Do not leave an hole in the directory list if allocation of theOtto Moerbeek
2006-04-18delint; original from deraadt@ with fixes from tdeval@ and me;Otto Moerbeek
2006-02-14quick path for free(0)Marc Espie
2005-10-10Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.Marc Espie
2005-10-05further knf and cleaning; ok tdevalTheo de Raadt
2005-10-05first KNF (no binary diffs)Theo de Raadt
2005-08-08zap remaining rcsid.Marc Espie
2005-07-07Fix the unmapping of freed pages, leaving just 64k worth of cache pages.Thierry Deval