summaryrefslogtreecommitdiffstats
path: root/src/jemalloc.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-09-15 06:32:26 (GMT)
committerJason Evans <jasone@canonware.com>2015-09-15 06:57:09 (GMT)
commit23f6e103c871b4db5b315caf1a8d5c46d9675691 (patch)
tree00cb2ca0db6f73b72e413542dc9d14c51eeed7cf /src/jemalloc.c
parentce9a4e34795a22838b97a5f10cd8090ab21f22fd (diff)
downloadjemalloc-23f6e103c871b4db5b315caf1a8d5c46d9675691.zip
jemalloc-23f6e103c871b4db5b315caf1a8d5c46d9675691.tar.gz
jemalloc-23f6e103c871b4db5b315caf1a8d5c46d9675691.tar.bz2
Fix ixallocx_prof_sample() argument order reversal.
Fix ixallocx_prof() to pass usize_max and zero to ixallocx_prof_sample() in the correct order.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r--src/jemalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index a7c7a03..2566f9b 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -2299,7 +2299,7 @@ ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size,
tctx = prof_alloc_prep(tsd, usize_max, prof_active, false);
if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) {
usize = ixallocx_prof_sample(ptr, old_usize, size, extra,
- alignment, zero, usize_max, tctx);
+ alignment, usize_max, zero, tctx);
} else {
usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
zero);