aboutsummaryrefslogtreecommitdiff
path: root/morecore.c
diff options
context:
space:
mode:
authorDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2005-11-21 10:54:56 +1100
committerDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2005-11-21 10:54:56 +1100
commit60bf9f8efa92f4714fd7ffe3e1d6a74784d3a8e5 (patch)
treedf2ef0e69e1b49d1b50f0b213bdc7c07c5170275 /morecore.c
parentc884caf4c39ed3c5ee41009fa5573dc5d4bf5dbf (diff)
downloadlibhugetlbfs-60bf9f8efa92f4714fd7ffe3e1d6a74784d3a8e5.tar.gz
hugetlbfs_test_addr().
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);
+ }
}