]> granicus.if.org Git - gc/commitdiff
New configure --enable-mmap option
authorMichael DeRoy <deroymichael@gmail.com>
Mon, 30 Jul 2018 06:19:33 +0000 (09:19 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 30 Jul 2018 06:19:33 +0000 (09:19 +0300)
(part of commit 6be3fb4 from Unity-Technologies/bdwgc)

Issue #173 (bdwgc).

* configure.ac (mmap): New AC_ARG_ENABLE (store the result to
gc_use_mmap).

configure.ac

index a732555d7b013e8d0366d13fb94a19f335778127..5d5a62facf9baf116c4ad677324d98d58cebd238 100644 (file)
@@ -913,6 +913,11 @@ if test "${enable_gc_assertions}" = yes; then
               [Define to enable internal debug assertions.])
 fi
 
+AC_ARG_ENABLE(mmap,
+    [AC_HELP_STRING([--enable-mmap],
+                    [use mmap instead of sbrk to expand the heap])],
+    gc_use_mmap=$enableval)
+
 AC_ARG_ENABLE(munmap,
     [AC_HELP_STRING([--enable-munmap=N],
                     [return page to the OS if empty for N collections