summaryrefslogtreecommitdiff
path: root/sys/kern/kern_malloc.c
AgeCommit message (Expand)Author
2021-02-23remove unused malloc_roundup()Jonathan Gray
2020-12-31Add trace points for malloc(9) and free(9). This makes them traceableClaudio Jeker
2020-10-14delete strange historical FFS_SOFTUPDATES ifdef...Theo de Raadt
2019-12-19Convert infinite sleeps to {m,t}sleep_nsec(9).Martin Pieuchot
2019-11-28Delete km_mapblocks from kmemstats and its always-zero column from the ddbPhilip Guenther
2019-05-15rework the zero warning slightly, and more completely disable until we'reTed Unangst
2019-05-09disable stack printing for now since at least arm64 can't print themTed Unangst
2019-05-08print a few warnings when calling free with a zero size.Ted Unangst
2018-07-10In free(9) call wakeup() after mtx_leave() consistently.Alexander Bluhm
2018-07-09Fix trailing whitespaces and too long line.Alexander Bluhm
2018-07-09Make free(9) MP safe. It was wrong to set ku_indx to 0 after freeingAlexander Bluhm
2018-01-18While booting it does not make sense to wait for memory, there isAlexander Bluhm
2018-01-02Fix an off-by-one in the free(9) "passed size was too small" check:Philip Guenther
2017-11-14remove MALLOC_DEBUGDavid Gwynne
2017-07-10make malloc(9) mpsafe by using a mutex instead of splvm.David Gwynne
2017-06-07Assert that the calling CPU is holding the KERNEL_LOCK() in malloc(9)Martin Pieuchot
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-02-13Include sys/stdint.h for SIZE_MAX instead of relying on the misplacedTodd C. Miller
2014-12-10convert bcopy to memcpy. ok millertTed Unangst
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
2014-11-06need to calculate correct size before doing the free checks. the biggestTed Unangst
2014-11-06let ramdisks compileTheo de Raadt
2014-11-05need to move lock up to prevent more than one malloc. ok guentherTed Unangst
2014-11-05don't use loop variable (i) for not loop things. use a new var.Ted Unangst
2014-11-05use memname to print string of type. stolen from deraadtTed Unangst
2014-11-05also print type when free size is wrongTed Unangst
2014-11-02tweak free panic messages tooTed Unangst
2014-11-02tweak panic messages for consistencyTed Unangst
2014-09-14remove uneeded proc.h includesJonathan Gray
2014-07-13if the freedsize isn't zero, check that's reasonable. ok beckTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-10instead of defining two versions of bucketidx, just don't inline for small.Ted Unangst
2014-07-10Add mallocarray(9)Matthew Dempsky
2014-07-10pool_debug still needed for non-DIAGNOSTIC kernelsTheo de Raadt
2014-07-10hide the biglock thrashing under pool_debug so it can be turned offTed Unangst
2014-06-21you've had 12+ years to update your kernel config.Daniel Dickman
2014-05-19consistent use of uint32_t for poison valuesTed Unangst
2014-04-03if it's ok to wait, it must also be ok to give the kernel lock. do so.Ted Unangst
2014-03-28Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofMartin Pieuchot
2014-01-21bzero -> memsetTed Unangst
2013-08-08Uncomment kprintf format attributes for sys/kernSylvestre Gallon
2013-07-04permit free(NULL) to work. ok deraadtTed Unangst
2013-05-31open up some races. if pool_debug == 2, force a yield() whenever waitok.Ted Unangst
2013-05-03switch the malloc and pool freelists to using xor simpleq.Ted Unangst
2013-04-06shuffle around some poison code, prototypes, values...Ted Unangst
2013-03-28separate memory poisoning code to a new file and make it usable kernel wideTed Unangst
2013-03-26replace kern malloc's hand rolled freelist with simpleq macros.Ted Unangst
2013-03-21use PAGE_SHIFT instead of PGSHIFTTheo de Raadt
2013-03-15factor out the deadbeef code for legibility.Ted Unangst