public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH,boehm-gc] Use mmap instead of brk on kfreebsd & hurd too
@ 2014-08-31 15:20 Samuel Thibault
  2016-03-29 21:06 ` Thomas Schwinge
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2014-08-31 15:20 UTC (permalink / raw)
  To: java-patches; +Cc: bug-hurd

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.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.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-29 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-31 15:20 [PATCH,boehm-gc] Use mmap instead of brk on kfreebsd & hurd too Samuel Thibault
2016-03-29 21:06 ` Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).