aboutsummaryrefslogtreecommitdiff
path: root/morecore.c
diff options
context:
space:
mode:
Diffstat (limited to 'morecore.c')
-rw-r--r--morecore.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/morecore.c b/morecore.c
index b1f9868..740df91 100644
--- a/morecore.c
+++ b/morecore.c
@@ -65,6 +65,9 @@ void __attribute__ ((constructor)) setup_morecore(void)
orig_morecore = __morecore;
env = getenv("HUGETLB_MORECORE");
- if (env)
+ if (env) {
__morecore = &hugetlbfs_morecore;
+ /* we always want to use our morecore, not mmap() */
+ mallopt(M_MMAP_MAX, 0);
+ }
}