summaryrefslogtreecommitdiffstats
path: root/test/aligned_alloc.exp
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2011-03-14 19:56:51 (GMT)
committerJason Evans <je@fb.com>2011-03-14 19:56:51 (GMT)
commita8118233ec0369e00629fe853a5655c0dabf83d2 (patch)
tree94b0192522f7d337174d6cc7b7c43bf8f2c8a048 /test/aligned_alloc.exp
parenta7153a0d7d5f1c81edf4a8087353cc095819b78c (diff)
downloadjemalloc-a8118233ec0369e00629fe853a5655c0dabf83d2.zip
jemalloc-a8118233ec0369e00629fe853a5655c0dabf83d2.tar.gz
jemalloc-a8118233ec0369e00629fe853a5655c0dabf83d2.tar.bz2
Fix a thread cache stats merging bug.
When a thread cache flushes objects to their arenas due to an abundance of cached objects, it merges the allocation request count for the associated size class, and increments a flush counter. If none of the flushed objects came from the thread's assigned arena, then the merging wouldn't happen (though the counter would typically eventually be merged), nor would the flush counter be incremented (a hard bug). Fix this via extra conditional code just after the flush loop.
Diffstat (limited to 'test/aligned_alloc.exp')
0 files changed, 0 insertions, 0 deletions