From owner-svn-src-all@FreeBSD.ORG Fri May 31 06:42:48 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 76A1779F; Fri, 31 May 2013 06:42:48 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from caravan.chchile.org (caravan.chchile.org [178.32.125.136]) by mx1.freebsd.org (Postfix) with ESMTP id 4025C80C; Fri, 31 May 2013 06:42:48 +0000 (UTC) Received: by caravan.chchile.org (Postfix, from userid 1000) id BD6E5BC135; Fri, 31 May 2013 06:42:39 +0000 (UTC) Date: Fri, 31 May 2013 08:42:39 +0200 From: Jeremie Le Hen To: Marcel Moolenaar Subject: Re: svn commit: r250991 - in head: contrib/jemalloc/include/jemalloc include lib/libc/stdlib/jemalloc Message-ID: <20130531064239.GF70224@caravan.chchile.org> Mail-Followup-To: Marcel Moolenaar , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201305251859.r4PIxChc053341@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201305251859.r4PIxChc053341@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2013 06:42:48 -0000 Hi Marcel, On Sat, May 25, 2013 at 06:59:12PM +0000, Marcel Moolenaar wrote: > Author: marcel > Date: Sat May 25 18:59:11 2013 > New Revision: 250991 > URL: http://svnweb.freebsd.org/changeset/base/250991 > > Log: > Make the malloc(3) family of functions weak and make their non-weak > implementations visible for use by applications. The functions $F that > are now weak symbols are: > allocm, calloc, dallocm, free, malloc, malloc_usable_size, > nallocm, posix_memalign, rallocm, realloc, sallocm > > The non-weak implementations of $F are exported as __$F. > > Submitted by: stevek@juniper.net > Reviewed by: jasone@, kib@ > Approved by: jasone@ (jemalloc) > Obtained from: juniper Networks, Inc I don't understand what this brings. If an application want to override malloc() et al., it can just do it and the dynamic linker won't look up the libc's version. Would you mind giving an example of what is now possible with this change? Thanks, -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons.