Hello, Please use mmap instead of brk on kfreebsd and hurd too. Also, using anonymous memory is faster on the Hurd.
Thanks, Samuel 2014-08-31 Samuel Thibault <samuel.thiba...@ens-lyon.org> * configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*. * include/private/gcconfig.h [HURD && USE_MMAP]: Define USE_MMAP_ANON. Index: boehm-gc/configure.host =================================================================== --- boehm-gc/configure.host (révision 214763) +++ boehm-gc/configure.host (copie de travail) @@ -41,7 +41,7 @@ fi case "${host}" in - *-linux*) + *-linux*|*-kfreebsd-gnu*|*-gnu*) gc_use_mmap=yes ;; esac Index: boehm-gc/include/private/gcconfig.h =================================================================== --- boehm-gc/include/private/gcconfig.h (révision 214763) +++ boehm-gc/include/private/gcconfig.h (copie de travail) @@ -2132,7 +2132,7 @@ # endif # endif -#if defined(LINUX) && defined(USE_MMAP) +#if (defined(LINUX) || defined(HURD)) && defined(USE_MMAP) /* The kernel may do a somewhat better job merging mappings etc. */ /* with anonymous mappings. */ # define USE_MMAP_ANON