From owner-freebsd-gecko@freebsd.org Mon Jun 29 18:00:00 2015 Return-Path: Delivered-To: freebsd-gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12C7B990DE2 for ; Mon, 29 Jun 2015 18:00:00 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id F36821CD2 for ; Mon, 29 Jun 2015 17:59:59 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: by mailman.ysv.freebsd.org (Postfix) id F0480990DDC; Mon, 29 Jun 2015 17:59:59 +0000 (UTC) Delivered-To: gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFB6A990DDB for ; Mon, 29 Jun 2015 17:59:59 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA481CD1; Mon, 29 Jun 2015 17:59:59 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) X-Auth-ID: anat Received: from devlanhide.timeinc.net (HELO utka.zajac) ([209.251.200.245]) by smtp02.lnh.mail.rcn.net with ESMTP; 29 Jun 2015 13:58:50 -0400 Message-ID: <55918759.5060404@aldan.algebra.com> Date: Mon, 29 Jun 2015 13:58:49 -0400 From: "Mikhail T." User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: gecko@FreeBSD.org CC: beat@FreeBSD.org, flo@FreeBSD.org Subject: Why use jemalloc bundled with Mozilla? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 18:00:00 -0000 The system malloc on FreeBSD-10.x is jemalloc-3.4.x. Why do Mozilla ports build with "--enable-jemalloc" turned on despite that? Is it just a typo in bsd.gecko.mk and the fix as simple as: --- /usr/ports/Mk/bsd.gecko.mk (revision 390575) +++ /usr/ports/Mk/bsd.gecko.mk (working copy) @@ -130,7 +130,7 @@ # use jemalloc 3.0.0 API for stats/tuning MOZ_EXPORT+= MOZ_JEMALLOC3=1 -.if ${OSVERSION} < 1000012 || ${MOZILLA_VER:R:R} >= 37 +.if ${OSVERSION} < 1000012 && ${MOZILLA_VER:R:R} >= 37 MOZ_OPTIONS+= --enable-jemalloc .endif or is there more to it? Thanks! Yours, -mi