[Hurd, kFreeBSD] boehm-gc: Use mmap instead of brk

boehm-gc/
	* configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*.
	* include/private/gcconfig.h [HURD && USE_MMAP]: Define
	USE_MMAP_ANON.

From-SVN: r234534
This commit is contained in:
Samuel Thibault 2016-03-29 21:05:07 +00:00 committed by Thomas Schwinge
parent 13f0e8c7e7
commit cf081cb66f
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-03-29 Samuel Thibault <samuel.thibault@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.
2016-03-16 Andreas Schwab <schwab@suse.de> 2016-03-16 Andreas Schwab <schwab@suse.de>
* include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ): * include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ):

View File

@ -41,7 +41,7 @@ else
fi fi
case "${host}" in case "${host}" in
*-linux*) *-linux*|*-kfreebsd-gnu*|*-gnu*)
gc_use_mmap=yes gc_use_mmap=yes
;; ;;
esac esac

View File

@ -2137,7 +2137,7 @@
# endif # endif
# 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. */ /* The kernel may do a somewhat better job merging mappings etc. */
/* with anonymous mappings. */ /* with anonymous mappings. */
# define USE_MMAP_ANON # define USE_MMAP_ANON