From owner-freebsd-current@FreeBSD.ORG Mon Dec 12 18:50:13 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7420F1065670; Mon, 12 Dec 2011 18:50:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4AD138FC12; Mon, 12 Dec 2011 18:50:13 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id DE47F46B23; Mon, 12 Dec 2011 13:50:12 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 6D1EAB93F; Mon, 12 Dec 2011 13:50:12 -0500 (EST) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 12 Dec 2011 13:29:41 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p8; KDE/4.5.5; amd64; ; ) References: <20111201212311.GA83353@zim.MIT.EDU> In-Reply-To: <20111201212311.GA83353@zim.MIT.EDU> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201112121329.41296.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 12 Dec 2011 13:50:12 -0500 (EST) Cc: George Liaskos , David Schultz Subject: Re: r227487 breaks C++ programs that use __isthreaded 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: Mon, 12 Dec 2011 18:50:13 -0000 On Thursday, December 01, 2011 4:23:11 pm David Schultz wrote: > On Thu, Dec 01, 2011, George Liaskos wrote: > > Hello > > > > One example is Google's tcmalloc [1], is this behaviour intended? > > > > [1] http://code.google.com/p/google- perftools/source/browse/trunk/src/maybe_threads.cc > > This code uses an unportable workaround for a bug that I believe > was fixed in r227999. Using internal names starting with a double > underscore isn't supported. I still think 227999 is wrong and would prefer that once actually worked, but that has fallout for libstdc++. libc has an internal _once() that always works. -- John Baldwin