* [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
* Re: [PATCH,boehm-gc] Use mmap instead of brk on kfreebsd & hurd too
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
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Schwinge @ 2016-03-29 21:06 UTC (permalink / raw)
To: Samuel Thibault, java-patches, gcc-patches; +Cc: bug-hurd, debian-bsd
[-- Attachment #1: Type: text/plain, Size: 2234 bytes --]
Hi!
On Sun, 31 Aug 2014 17:20:04 +0200, Samuel Thibault <samuel.thibault@gnu.org> wrote:
> Please use mmap instead of brk on kfreebsd and hurd too.
> Also, using anonymous memory is faster on the Hurd.
> [patch]
Thanks; finally committed in r234534:
commit 04a4d1ce0425912054b6f8db5bc15029bf87e055
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue Mar 29 21:05:07 2016 +0000
[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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234534 138bc75d-0d04-0410-961f-82ee72b054a4
---
boehm-gc/ChangeLog | 6 ++++++
boehm-gc/configure.host | 2 +-
boehm-gc/include/private/gcconfig.h | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git boehm-gc/ChangeLog boehm-gc/ChangeLog
index c41734a..6896c67 100644
--- boehm-gc/ChangeLog
+++ boehm-gc/ChangeLog
@@ -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>
* include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ):
diff --git boehm-gc/configure.host boehm-gc/configure.host
index 97f4dac..229a038 100644
--- boehm-gc/configure.host
+++ boehm-gc/configure.host
@@ -41,7 +41,7 @@ else
fi
case "${host}" in
- *-linux*)
+ *-linux*|*-kfreebsd-gnu*|*-gnu*)
gc_use_mmap=yes
;;
esac
diff --git boehm-gc/include/private/gcconfig.h boehm-gc/include/private/gcconfig.h
index aa81f15..44b9d7d 100644
--- boehm-gc/include/private/gcconfig.h
+++ boehm-gc/include/private/gcconfig.h
@@ -2137,7 +2137,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
Grüße
Thomas
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ 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).