From: Samuel Thibault <samuel.thibault@gnu.org>
To: java-patches@gcc.gnu.org
Cc: bug-hurd@gnu.org
Subject: [PATCH,boehm-gc] Use mmap instead of brk on kfreebsd & hurd too
Date: Sun, 31 Aug 2014 15:20:00 -0000 [thread overview]
Message-ID: <20140831152004.GA25911@type.youpi.perso.aquilenet.fr> (raw)
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
next reply other threads:[~2014-08-31 15:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-31 15:20 Samuel Thibault [this message]
2016-03-29 21:06 ` Thomas Schwinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140831152004.GA25911@type.youpi.perso.aquilenet.fr \
--to=samuel.thibault@gnu.org \
--cc=bug-hurd@gnu.org \
--cc=java-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).