From owner-freebsd-current@FreeBSD.ORG Sat Apr 21 17:36:43 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 4B8CE1065670 for ; Sat, 21 Apr 2012 17:36:43 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 13ADF8FC15 for ; Sat, 21 Apr 2012 17:36:43 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA" (not verified)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id E361261F8; Sat, 21 Apr 2012 13:36:41 -0400 (EDT) DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=iWUU3LmBRKUUrxdnHljUz3S+JhsGGlxJ8vX0JKilIYW+LH1ifjUGXbfb3uPZAWEIO rGezkbgOwloI3BRGsbEwwj89vfR/AgxjI4XE6U9yLLCf/t8wQy5KKKMsy/nAFfM Message-ID: <4F92F020.1000204@protected-networks.net> Date: Sat, 21 Apr 2012 13:36:32 -0400 From: Michael Butler User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0.3) Gecko/20120401 Thunderbird/10.0.3 MIME-Version: 1.0 To: Cy Schubert References: <201204211721.q3LHLZTa007501@slippy.cwsent.com> In-Reply-To: <201204211721.q3LHLZTa007501@slippy.cwsent.com> X-Enigmail-Version: 1.4 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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: Sat, 21 Apr 2012 17:36:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/21/12 13:21, Cy Schubert wrote: > In message <4F91C8FE.4070807@FreeBSD.org>, Dimitry Andric writes: >> This is a multi-part message in MIME format. >> --------------030506060901050002030508 >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> Content-Transfer-Encoding: 7bit >> >> On 2012-04-20 22:21, Jason Evans wrote: >>> On Apr 20, 2012, at 1: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 so >> lving this problem in the short run. >>> >>> I take it back. There's spotty mangling coverage for variables. I'll try >> to add full coverage. >> >> I'm now using the attached. It seems to work... > > It didn't work for me. The problem is that /usr/bin/as is statically linked .. rebuild that and you'll be fine, imb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk+S8CAACgkQQv9rrgRC1JJs/ACcC9Sg1n37dQICmkRkeF3dLSi/ EX8An1IjGbLT6N9YM9p6fOyGL4V6ep1f =NooP -----END PGP SIGNATURE-----