summaryrefslogtreecommitdiffstats
path: root/src/jemalloc_cpp.cpp
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-11-12 05:58:05 (GMT)
committerJason Evans <jasone@canonware.com>2016-11-12 06:18:39 (GMT)
commitb9408d77a63a54fd331f9b81c884f68e6d57f2e5 (patch)
tree1ad590751bd093c1cbb399cf6fa0ff13449cf9da /src/jemalloc_cpp.cpp
parent2cdf07aba971d1e21edc203e7d4073b6ce8e72b9 (diff)
downloadjemalloc-b9408d77a63a54fd331f9b81c884f68e6d57f2e5.zip
jemalloc-b9408d77a63a54fd331f9b81c884f68e6d57f2e5.tar.gz
jemalloc-b9408d77a63a54fd331f9b81c884f68e6d57f2e5.tar.bz2
Fix/simplify chunk_recycle() allocation size computations.
Remove outer CHUNK_CEILING(s2u(...)) from alloc_size computation, since s2u() may overflow (and return 0), and CHUNK_CEILING() is only needed around the alignment portion of the computation. This fixes a regression caused by 5707d6f952c71baa2f19102479859012982ac821 (Quantize szad trees by size class.) and first released in 4.0.0. This resolves #497.
Diffstat (limited to 'src/jemalloc_cpp.cpp')
0 files changed, 0 insertions, 0 deletions