summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2012-04-17Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch,Jason Evans
2012-01-09Add aligned_alloc(3).Ed Schouten
2011-12-15Since clang does not support the tls_model attribute used in malloc.cDimitry Andric
2011-06-21Change sparc64 to use the initial exec TLS model, too. This avoids randomMarius Strobl
2011-03-11Now that TLS generally is available on sparc64 since r219534 turn onMarius Strobl
2010-08-17Use aux vector to get values for SSP canary, pagesize, pagesizes array,Konstantin Belousov
2010-07-10Provide 64-bit PowerPC support in libc.Nathan Whitehorn
2010-02-28Rewrite red-black trees to do lazy balance fixup. This improvesJason Evans
2010-02-16Define TLS_MODEL for PowerPC as well. Since PowerPC uses variant I,Marcel Moolenaar
2010-02-16Unbreak ia64: tls_model("initial-exec") is invalid, because it assumesMarcel Moolenaar
2010-01-31Fix bugs:Jason Evans
2010-01-27Add missing return, in a rare case where we can't allocate memory inEd Maste
2009-12-10Simplify arena_run_reg_dalloc(), and remove a bug that was due to incorrectJason Evans
2009-12-10Fix the posix_memalign() changes in r196861 to actually return a NULL pointerJason Evans
2009-11-14Change the utrace log entry for malloc_init from (0, 0, 0) to (-1, 0, 0)Colin Percival
2009-09-26Make malloc(3) superpage aware. Specifically, if getpagesizes(3) returnsAlan Cox
2009-09-05Handle zero size for posix_memalign. Return NULL or unique addressKonstantin Belousov
2008-12-01Fix a lock order reversal bug that could cause deadlock during fork(2).Jason Evans
2008-11-30Adjust an assertion to handle the case where a lock is contested, butJason Evans
2008-11-30Do not spin when trying to lock on a single-CPU system.Jason Evans
2008-11-03Revert to preferring mmap(2) over sbrk(2) when mapping memory, due toJason Evans
2008-09-10Use PAGE_{SIZE,MASK,SHIFT} from machine/param.h rather than hard-codingJason Evans
2008-09-06Unbreak ia64: pges are 8KB.Marcel Moolenaar
2008-08-27Add thread-specific caching for small size classes, based on magazines.Jason Evans
2008-08-14Move CPU_SPINWAIT into the innermost spin loop, in order to allow fasterJason Evans
2008-08-14Re-order the terms of an expression in arena_run_reg_dalloc() to correctlyJason Evans
2008-08-08Remove variables which are assigned values and never used thereafter.Colin Percival
2008-07-18Enhance arena_chunk_map_t to directly support run coalescing, and useJason Evans
2008-06-10In the error path through base_alloc(), release base_mtx [1].Jason Evans
2008-05-01Add a separate tree to track arena chunks that contain dirty pages.Jason Evans
2008-04-29 Set QUANTUM_2POW_MIN and SIZEOF_PTR_2POW parameters for MIPSOleksandr Tymoshenko
2008-04-29Check for integer overflow before calling sbrk(2), since it uses aJason Evans
2008-04-23Implement red-black trees without using parent pointers, and store theJason Evans
2008-03-07Remove stale #include <machine/atomic.h>, which as needed by lazyJason Evans
2008-02-17Fix a race condition in arena_ralloc() for shrinking in-place largeJason Evans
2008-02-17Remove support for lazy deallocation. Benchmarks across a wide range ofJason Evans
2008-02-08Fix a bug in lazy deallocation that was introduced whenJason Evans
2008-02-08Clean up manipulation of chunk page map elements to remove some tenuousJason Evans
2008-02-06Track dirty unused pages so that they can be purged if they exceed aJason Evans
2008-01-03Enable both sbrk(2)- and mmap(2)-based memory acquisition methods byJason Evans
2007-12-31Fix a major chunk-related memory leak in chunk_dealloc_dss_record(). [1]Jason Evans
2007-12-31Fix a bug related to sbrk() calls that could cause address space leaks.Jason Evans
2007-12-28Back out premature commit of previous version.Jason Evans
2007-12-28Maintain two trees instead of one (old_chunks --> old_chunks_{ad,szad}) inJason Evans
2007-12-28Release chunks_mtx for all paths through chunk_dealloc().Jason Evans
2007-12-27Add the 'D' and 'M' run time options, and use them to control whetherJason Evans
2007-12-18Use fixed point integer math instead of floating point math whenJason Evans
2007-12-17Refactor features a bit in order to make it possible to disable lazyJason Evans
2007-11-28Only zero large allocations when necessary (for calloc()).Jason Evans
2007-11-27Implement dynamic load balancing of thread-->arena mapping, based on lockJason Evans