From owner-freebsd-current@FreeBSD.ORG Fri Apr 20 20:25:59 2012 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id 298ED106566C; Fri, 20 Apr 2012 20:25:59 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 230D914DDC8; Fri, 20 Apr 2012 20:25:58 +0000 (UTC) Message-ID: <4F91C656.7060207@FreeBSD.org> Date: Fri, 20 Apr 2012 13:25:58 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Jason Evans References: <20120420125718.GD1582@albert.catwhisker.org> <20120420165558.b51c8b66.misho@aitbg.com> <4F91BDE1.4080802@FreeBSD.org> <4F91C2BB.1000808@FreeBSD.org> <99ABB17E-C564-475E-92B0-7DF92EE4CFEC@freebsd.org> In-Reply-To: <99ABB17E-C564-475E-92B0-7DF92EE4CFEC@freebsd.org> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Michael Pounov , Dimitry Andric , 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:25:59 -0000 On 04/20/2012 01:14 PM, Jason Evans wrote: > On Apr 20, 2012, at 1:10 PM, Dimitry Andric wrote: >> 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? > > Ah right, functions only. Well then, I don't have any bright ideas for solving this problem in the short run. Prefixing your variables sounds right to me ... I'd use jem_ instead of spelling out jemalloc_, but either should work. Doug