summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2014-08-18a small tweak to improve malloc in multithreaded programs. we don't needTed Unangst
2014-07-09reduce obvious dependency on global g_pool by moving to local aliasesTed Unangst
2014-06-27extra evil spaces snuck in over the last whileTheo de Raadt
2014-06-27Move to a smaller rbytes buffer and skip a random part. Not toOtto Moerbeek
2014-06-02move random bytes buffer to be part of mmaped pages; ok tedu@Otto Moerbeek
2014-05-26move all stats collecting under MALLOC_STATS; ok krw@Otto Moerbeek
2014-05-21fix MALLOC_STATS (not compiled in by default); ok tedu@Otto Moerbeek
2014-05-18factor out a bit of the chunk index code and use it to make sure that aTed Unangst
2014-05-12change to having four freelists per size, to reduce another source ofTed Unangst
2014-05-10fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by defaultOtto Moerbeek
2014-05-08move reallocarray() to a seperate file so that -portable applicationsTheo de Raadt
2014-05-07comment style fixAlexander Hall
2014-05-01nibbles aren't enough random, use bytes. does a better job of pickingTed Unangst
2014-04-23remove Z option and default to something halfway to J.Ted Unangst
2014-04-23explain a bit more what's going on for stupid me.Marc Espie
2014-04-23Better, cleaner hash function that computes the same on be and le archs.Otto Moerbeek
2014-04-22change mallocarray to reallocarray. useful in a few more situations.Ted Unangst
2014-04-21Introducing: void *mallocarray(size_t nmemb, size_t size);Theo de Raadt
2014-04-14print pid in error messages; ok reyk@Otto Moerbeek
2014-04-03Update Copyright notice; ok otto@ beck@ deraadt@.Ingo Schwarze
2014-03-25Poul-Henning Kamp informed me he is allright with this licensing change.Bob Beck
2013-11-12avoid arithetic on void *Theo de Raadt
2012-12-22Fix bug in random offset introduced in rev 1.143; random range wasOtto Moerbeek
2012-11-02Add a new malloc option 'U' => "Free unmap" that does the guarding/Damien Miller
2012-09-13Fix precedence bug (& has lower precedence than !=).Paul Irofti
2012-07-09use PAGE_SHIFT instead of PGSHIFT, in preperation for futureTheo de Raadt
2012-06-26after a talk with ariane, use MAP_FIXED for mquery to avoid the cost ofTed Unangst
2012-06-22two changes which should improve realloc. first, fix zapcacheregion toTed Unangst
2012-06-20two small fixes to free page cache. first, we need two nibbles of randomTed Unangst
2012-06-18Support larger-than-page-alignment requests in posix_memalign() byMatthew Dempsky
2012-02-29- Test for the retrieved page address not being NULL. This turns free((void*)1)Otto Moerbeek
2011-10-06Make struct chunk_info a variable sized struct, wasting lessOtto Moerbeek
2011-07-12on malloc flag S, set cache size to 0; will catch even moreOtto Moerbeek
2011-06-20as man page states, lower case undoes upper case. add support for little s,Ted Unangst
2011-05-20save errno dance in wrterror() and malloc_dump(); prompted by and ok deraadt@Otto Moerbeek
2011-05-18introduce symbolic constant for initial number of regionsOtto Moerbeek
2011-05-18zap regions_bits and rework MALLOC_MAXSHIFT a bit; ok djm@Otto Moerbeek
2011-05-12Avoid fp computations for stats, this make calling malloc_dump() safe in moreOtto Moerbeek
2011-05-12fix comment, the bitmap is an array of u_short nowOtto Moerbeek
2011-05-12Introduce leak detection code for MALLOC_STATSOtto Moerbeek
2011-05-08Move MALLOC_STATS code to bottom of file, so the real stuff is more at the top.Otto Moerbeek
2011-05-05Up until now, malloc scanned the bits of the chunk bitmap fromOtto Moerbeek
2011-04-30Now that we use an array of u_short for the chunk bitmap change a fewOtto Moerbeek
2011-04-30More efficient scanning for free chunks while not losing any randomization;Otto Moerbeek
2010-12-16avoid pointer arithmetic on void *David Hill
2010-10-21print the pointer value that caused the error (if available); okOtto Moerbeek
2010-05-18add posix_madvise, posix_memalign, strndup, and strnlen. mostly fromTed Unangst
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