From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98867 invoked by alias); 29 Mar 2016 21:06:51 -0000 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org Received: (qmail 98841 invoked by uid 89); 29 Mar 2016 21:06:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Aug, 20160316, 2016-03-16, Hx-languages-length:2116 X-Spam-User: qpsmtpd, 2 recipients X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 29 Mar 2016 21:06:39 +0000 Received: from svr-orw-fem-06.mgc.mentorg.com ([147.34.97.120]) by relay1.mentorg.com with esmtp id 1al0qS-0006XP-9k from Thomas_Schwinge@mentor.com ; Tue, 29 Mar 2016 14:06:36 -0700 Received: from tftp-cs (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.3.224.2; Tue, 29 Mar 2016 14:06:36 -0700 Received: by tftp-cs (Postfix, from userid 49978) id 82669C1D41; Tue, 29 Mar 2016 14:06:35 -0700 (PDT) From: Thomas Schwinge To: Samuel Thibault , , CC: , Subject: Re: [PATCH,boehm-gc] Use mmap instead of brk on kfreebsd & hurd too In-Reply-To: <20140831152004.GA25911@type.youpi.perso.aquilenet.fr> References: <20140831152004.GA25911@type.youpi.perso.aquilenet.fr> User-Agent: Notmuch/0.9-125-g4686d11 (http://notmuchmail.org) Emacs/24.5.1 (i586-pc-linux-gnu) Date: Tue, 29 Mar 2016 21:06:00 -0000 Message-ID: <87twjpouy7.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2016-q1/txt/msg00026.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 2200 Hi! On Sun, 31 Aug 2014 17:20:04 +0200, Samuel Thibault 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 Date: Tue Mar 29 21:05:07 2016 +0000 [Hurd, kFreeBSD] boehm-gc: Use mmap instead of brk =20=20=20=20 boehm-gc/ * configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*. * include/private/gcconfig.h [HURD && USE_MMAP]: Define USE_MMAP_ANON. =20=20=20=20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234534 138bc75d-0d04-04= 10-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 + + * 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 =20 * 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 =20 case "${host}" in - *-linux*) + *-linux*|*-kfreebsd-gnu*|*-gnu*) gc_use_mmap=3Dyes ;; esac diff --git boehm-gc/include/private/gcconfig.h boehm-gc/include/private/gcc= onfig.h index aa81f15..44b9d7d 100644 --- boehm-gc/include/private/gcconfig.h +++ boehm-gc/include/private/gcconfig.h @@ -2137,7 +2137,7 @@ # endif # endif =20 -#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=C3=BC=C3=9Fe Thomas --=-=-= Content-Type: application/pgp-signature; name="signature.asc" Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJW+u5QAAoJEK3/DN1sMFFtSqwH/ReS6hqKietePM5Wuzoy5U7I A885NAT++/BnqwEivI4ywNpyqixpLEpWQZySHeds6w1FX6sA+y9LtBf4Jo8C59JE OQJdQcDrm82TmO3YJssiqS0i7CazYeG8uOlNLy6YEfvH4QCNjQq46yvPBWyOtymh LV5R4ihHcfJPbwdB43QFtwqPTDSJuzkOFe0y3PNodQpaP+AHW35RDFNvAMmx1bl4 hKhLFECN2sEOGTjHrsTHf/MqU5rmUpNfDPKY4AjJnA1TY+h9ZgvLn4eR19oGpOuX Ki2LyKxlZsSg8I4gaggaAcBc8Rw5fUu7HoaGF9+SG9L0rOCCa8XQPFYX+iJF+ac= =nzFP -----END PGP SIGNATURE----- --=-=-=--