summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-06-01 20:52:30 (GMT)
committerJason Evans <jasone@canonware.com>2016-06-06 03:42:24 (GMT)
commita83a31c1c5976d960bf9ef98ed7d9066d3d5b0f2 (patch)
treeeb814ec549f1ee28fe2cf0d37547028e4db8647a
parent751f2c332d91209c5ae3234fa444a20850067960 (diff)
downloadjemalloc-a83a31c1c5976d960bf9ef98ed7d9066d3d5b0f2.zip
jemalloc-a83a31c1c5976d960bf9ef98ed7d9066d3d5b0f2.tar.gz
jemalloc-a83a31c1c5976d960bf9ef98ed7d9066d3d5b0f2.tar.bz2
Relax opt_lg_chunk clamping constraints.
-rw-r--r--src/jemalloc.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 82d2e6b..c5fd441 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -1051,16 +1051,8 @@ malloc_conf_init(void)
}
CONF_HANDLE_BOOL(opt_abort, "abort", true)
- /*
- * Chunks always require at least one header page and as
- * many as 2^(LG_SIZE_CLASS_GROUP+1) data pages. In
- * order to simplify options processing, use a
- * conservative bound that accommodates all these
- * constraints.
- */
- CONF_HANDLE_SIZE_T(opt_lg_chunk, "lg_chunk", LG_PAGE +
- LG_SIZE_CLASS_GROUP + 1, (sizeof(size_t) << 3) - 1,
- true)
+ CONF_HANDLE_SIZE_T(opt_lg_chunk, "lg_chunk", LG_PAGE,
+ (sizeof(size_t) << 3) - 1, true)
if (strncmp("dss", k, klen) == 0) {
int i;
bool match = false;