6e62984ef6
Don't junk fill reallocations for which the request size is less than the current usable size, but not enough smaller to cause a size class change. Unlike malloc()/calloc()/realloc(), *allocx() contractually treats the full usize as the allocation, so a caller can ask for zeroed memory via mallocx() and a series of rallocx() calls that all specify MALLOCX_ZERO, and be assured that all newly allocated bytes will be zeroed and made available to the application without danger of allocator mutation until the size class decreases enough to cause usize reduction. |
||
---|---|---|
.. | ||
arena.c | ||
atomic.c | ||
base.c | ||
bitmap.c | ||
chunk_dss.c | ||
chunk_mmap.c | ||
chunk.c | ||
ckh.c | ||
ctl.c | ||
extent.c | ||
hash.c | ||
huge.c | ||
jemalloc.c | ||
mb.c | ||
mutex.c | ||
prof.c | ||
quarantine.c | ||
rtree.c | ||
stats.c | ||
tcache.c | ||
tsd.c | ||
util.c | ||
zone.c |