From owner-freebsd-current@FreeBSD.ORG Fri Apr 20 20:10:34 2012 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DBF84106566C; Fri, 20 Apr 2012 20:10:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 959408FC12; Fri, 20 Apr 2012 20:10:34 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:5452:d047:6eb8:2b2e] (unknown [IPv6:2001:7b8:3a7:0:5452:d047:6eb8:2b2e]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id CE3495C37; Fri, 20 Apr 2012 22:10:33 +0200 (CEST) Message-ID: <4F91C2BB.1000808@FreeBSD.org> Date: Fri, 20 Apr 2012 22:10:35 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120410 Thunderbird/12.0 MIME-Version: 1.0 To: Jason Evans References: <20120420125718.GD1582@albert.catwhisker.org> <20120420165558.b51c8b66.misho@aitbg.com> <4F91BDE1.4080802@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Michael Pounov , current@FreeBSD.org Subject: Re: /usr/bin/as: out of memory allocating 4194304 bytes after a total of 524288000 bytes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2012 20:10:34 -0000 On 2012-04-20 21:54, Jason Evans wrote: > On Apr 20, 2012, at 12:49 PM, Dimitry Andric wrote: ... >> I think the best solution would be for jemalloc to avoid using obvious >> names like "chunksize" for its globals, because it is basically a >> library that could be linked to any sort of program out there. >> >> For example, it could prefix all its internal-use only globals with >> "jemalloc_" or some other mangling scheme. Jason, any thoughts? > > jemalloc has optional namespace mangling support built in for just this reason. I'll turn it on, hopefully today. Indeed, I had just found jemalloc/internal/private_namespace.h. :) It does seem to list only functions, not variables, is that right?