summaryrefslogtreecommitdiffstats
path: root/test/aligned_alloc.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2010-03-07 23:34:14 (GMT)
committerJason Evans <jasone@canonware.com>2010-03-14 04:38:18 (GMT)
commit3fa9a2fad83a3014d5069b5a2530a0cfb8d8d197 (patch)
tree394d08733ba2c06209e95c13ad11adc993969287 /test/aligned_alloc.c
parent2caa4715ed4f787f263239ff97dd824636289286 (diff)
downloadjemalloc-3fa9a2fad83a3014d5069b5a2530a0cfb8d8d197.zip
jemalloc-3fa9a2fad83a3014d5069b5a2530a0cfb8d8d197.tar.gz
jemalloc-3fa9a2fad83a3014d5069b5a2530a0cfb8d8d197.tar.bz2
Simplify tcache object caching.
Use chains of cached objects, rather than using arrays of pointers. Since tcache_bin_t is no longer dynamically sized, convert tcache_t's tbin to an array of structures, rather than an array of pointers. This implicitly removes tcache_bin_{create,destroy}(), which further simplifies the fast path for malloc/free. Use cacheline alignment for tcache_t allocations. Remove runtime configuration option for number of tcache bin slots, and replace it with a boolean option for enabling/disabling tcache. Limit the number of tcache objects to the lesser of TCACHE_NSLOTS_MAX and 2X the number of regions per run for the size class. For GC-triggered flush, discard 3/4 of the objects below the low water mark, rather than 1/2.
Diffstat (limited to 'test/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions