summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2016-02-22 23:01:37 (GMT)
committerJason Evans <je@fb.com>2016-02-23 00:28:00 (GMT)
commit08551eee586eefa8c98f33b97679f259af50afab (patch)
tree95293dfbd5d54d42f482a9999c76ddbad50b99a7
parenta9a46847925e38373e6a5da250c0cecb11a8277b (diff)
downloadjemalloc-08551eee586eefa8c98f33b97679f259af50afab.zip
jemalloc-08551eee586eefa8c98f33b97679f259af50afab.tar.gz
jemalloc-08551eee586eefa8c98f33b97679f259af50afab.tar.bz2
Fix run_quantize_ceil().
In practice this bug had limited impact (and then only by increasing chunk fragmentation) because run_quantize_ceil() returned correct results except for inputs that could only arise from aligned allocation requests that required more than page alignment. This bug existed in the original run quantization implementation, which was introduced by 8a03cf039cd06f9fa6972711195055d865673966 (Implement cache index randomization for large allocations.).
-rw-r--r--src/arena.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arena.c b/src/arena.c
index ff5b5fb..97dea84 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -185,7 +185,7 @@ run_quantize_ceil(size_t size)
* search would potentially find sufficiently aligned available
* memory somewhere lower.
*/
- qsize = run_quantize_ceil_hard(size);
+ qsize = run_quantize_ceil_hard(qsize);
}
return (qsize);
}