summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2016-10-07stray tabOtto Moerbeek
2016-10-07Beter implementation of chunk canaries: store size in chunk meta dataOtto Moerbeek
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsPhilip Guenther
2016-09-18move page junking tp unmap(), right before we stick the region in the cache;Otto Moerbeek
2016-09-01Less lock contention by using more pools for mult-threaded programs.Otto Moerbeek
2016-09-01black magic for sparc page size can goTed Unangst
2016-08-17wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@Otto Moerbeek
2016-07-06J/j is a three valued option, document and fix code to actuall support thatOtto Moerbeek
2016-06-30adapt S option: add C, rm F (not relevant with 0 cache and disablesOtto Moerbeek
2016-06-28Back out previous; otto saw a potential race that could lead to aTheo Buehler
2016-06-27defer munmap to after unlocking malloc. this can (unfortunately) be anTed Unangst
2016-04-12two times a define to an inline function, from Michael McConville; ok djm@Otto Moerbeek
2016-04-09tweak MALLOC_STATS printing (switched off by default), prodded byOtto Moerbeek
2016-04-09redundant memset(3), from Michael McConville, ok armani@Otto Moerbeek
2016-03-17properly guard to macrosmmcc
2016-03-14small step towards multiple pools: move two globls into the struct dir_infoOtto Moerbeek
2016-03-13environ and __progname are not declared in a public header; declare themPhilip Guenther
2016-02-25refactor option letter parsing into a subfunction, to increase clarityTheo de Raadt
2016-01-26Don't crash dumping malloc stats if malloc_init hasn't been called, noted byOtto Moerbeek
2016-01-06Long ago, malloc internally had two kinds of failures, warnings and errors.Ted Unangst
2015-12-30another case where bad things would happen after wrterrorTed Unangst
2015-12-30if somebody makes the mistake of disabling abort, don't deref null inTed Unangst
2015-12-09Integrate two patches originally from Daniel Micay.Ted Unangst
2015-09-13For now, permit overriding of the malloc family, to make emacs happyPhilip Guenther
2015-09-13Wrap <stdlib.h> so that calls go direct and the symbols not in thePhilip Guenther
2015-04-06improve realloc. when expanding a region, actually use the free page cacheTed Unangst
2015-01-16Move to the <limits.h> universe.Theo de Raadt
2015-01-05rename kern enter/exit macros to malloc enter/leave to better reflectTed Unangst
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