summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
AgeCommit message (Expand)AuthorFilesLines
2018-11-21fold the contents of malloc.conf.5 into malloc.3 and sysctl.2,jmc1-6/+118
2018-11-21Introducing malloc_usable_size() was a mistake. While some otherotto2-105/+5
2018-11-19Fix compilation on alpha, where DEF_WEAK() really must be paired withguenther1-2/+1
2018-11-18Implement malloc_usable_size(); ok millert@ deraadt@ and jmc@ for the man pageotto2-6/+108
2018-11-08zap last remains of malloc.conf; prompted by and ok jmc@otto1-6/+6
2018-11-06rm FILES section; prompted by Janne Johanssonotto1-7/+2
2018-11-06Use the new vm.malloc_conf sysctl; ok millert@ deraadt@otto1-6/+11
2018-11-05Implement C11's aligned_alloc(3). ok guenther@otto2-5/+84
2018-04-07sys/uio.h is not used anymoreotto1-3/+2
2018-03-30fix MALLOC_STATS; spotted by and ok semarie@otto1-1/+5
2018-03-06use _ALIGN() which is uhm a bit OpenBSD-specific, but it means wederaadt1-3/+2
2018-03-05Use _MAX_PAGE_SHIFT, rather than #ifdef mips64deraadt1-6/+2
2018-02-07use consistent style for for loop in unmap(), no functional changeotto1-4/+2
2018-01-30keep in sync with ld.so malloc.cotto1-2/+3
2018-01-30word fix; from edgar pettijohnjmc1-3/+3
2018-01-28- An error in the multithreaded case could print the wrong function nameotto1-12/+23
2018-01-26- do not junk pages returned by free_bytes(), all freed chunks are alreadyotto1-19/+19
2018-01-18Zap the rotor, it was a wrong idea. Cluebat applied by kshe whootto1-6/+3
2018-01-18Move to ffs(3) for bitmask scanning. I played with this earlier,otto1-21/+11
2018-01-08optimization and some cleanup; mostly from kshe (except the unmap() part)otto1-67/+51
2018-01-01Only init chunk_info once, plus some moving of code to group related functions.otto1-273/+267
2017-12-27step one in avoiding unneccesary init of chunk_info;otto1-65/+81
2017-12-24Fix one possible buffer overflow and one underflow. Also some minormillert1-20/+36
2017-12-16Move __cxa_thread_atexit* to its own .c file to avoid pulling the codeguenther4-39/+64
2017-12-05Remove DEF_STRONG(__cxa_thread_atexit_impl). This produces an unwantedkettenis1-2/+1
2017-12-05Implement __cxa_thread_atexit to support C++11 thread_local scope. Thekettenis2-2/+56
2017-11-28GNU ld has prefixed the contents of .gnu.warning.SYMBOL sectionstb2-5/+5
2017-11-02's' should include 'f'; from Jacqueline Jolicoeurotto1-2/+2
2017-10-19Restore a return that was inadvertently removed from freezero() in r1.234,jsing1-1/+2
2017-10-05do not return f() where f is a void function; loop var type fixotto1-4/+5
2017-10-05Use dprintf instead of snprintf/writeotto1-82/+36
2017-09-23Make delayed free non-optional and make F do an extensive double free check.otto1-20/+25
2017-09-12mapalign returns MAP_FAILED for failuer; from George Koehlerotto1-2/+2
2017-09-11check double free before canary for chunks; ok millert@otto1-5/+5
2017-08-20two MALLOC_STATS only tweaks; one from David CARLIER, the other found by clangotto1-8/+4
2017-08-12Minimize #includes, particularly to avoid thread_private.hguenther2-7/+3
2017-08-01add missing and correct misspelled names, most in NAME sections;schwarze2-6/+8
2017-07-10one more instance of the previous commit; also initialize ->offset to aotto1-2/+3
2017-07-07Only access offset if canaries are enabled *and* size > 0, otherwise offsetotto1-2/+2
2017-07-06The 0x (or 0X) prefix in base 16 is optional so only skip over themillert6-18/+18
2017-06-19port the RBT code to userland by making it part of libc.dlg1-10/+11
2017-05-30Don't fall back to heapsort() if we would otherwise switch tomillert1-7/+7
2017-05-24Support swapping 32-bit aligned elements on 64-bit platforms.millert1-22/+63
2017-05-20Document that qsort falls back to heapsort() if the recursion depthmillert1-3/+13
2017-05-20Use David Musser's introsort algorithm to fall back to heapsort(3)millert2-14/+45
2017-05-17The BSD qsort() performs tail recursion elimination on the secondmillert1-10/+25
2017-05-15Typo: freezeo -> freezerotb1-3/+3
2017-05-13- fix bug wrt posix_memalign(3) of blocks between half a page and a pageotto2-8/+18
2017-04-23Rearrange text a bit to make it clear what "discarded" means; ok jmc@ deraadt@otto1-8/+13
2017-04-22For small allocations (chunk) freezero only validates the givenotto1-5/+10