summaryrefslogtreecommitdiffstats
path: root/test/src/thd.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-05-29 00:29:03 (GMT)
committerJason Evans <jasone@canonware.com>2016-06-06 03:42:23 (GMT)
commitd28e5a6696fd59a45c156b5c4dc183bb9ed21596 (patch)
tree046b3a745b7b711224f404ca2b630c34cf378d6f /test/src/thd.c
parented2c2427a7684bc8f41da54319c5dff00e177f76 (diff)
downloadjemalloc-d28e5a6696fd59a45c156b5c4dc183bb9ed21596.zip
jemalloc-d28e5a6696fd59a45c156b5c4dc183bb9ed21596.tar.gz
jemalloc-d28e5a6696fd59a45c156b5c4dc183bb9ed21596.tar.bz2
Improve interval-based profile dump triggering.
When an allocation is large enough to trigger multiple dumps, use modular math rather than subtraction to reset the interval counter. Prior to this change, it was possible for a single allocation to cause many subsequent allocations to all trigger profile dumps. When updating usable size for a sampled object, try to cancel out the difference between LARGE_MINCLASS and usable size from the interval counter.
Diffstat (limited to 'test/src/thd.c')
0 files changed, 0 insertions, 0 deletions