From owner-freebsd-arch@FreeBSD.ORG Mon Apr 2 20:31:10 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 045F8106566B; Mon, 2 Apr 2012 20:31:10 +0000 (UTC) (envelope-from jasone@canonware.com) Received: from canonware.com (10140.x.rootbsd.net [204.109.63.53]) by mx1.freebsd.org (Postfix) with ESMTP id D46AF8FC0C; Mon, 2 Apr 2012 20:31:09 +0000 (UTC) Received: from [192.168.168.4] (70-91-206-178-BusName-SFBA.hfc.comcastbusiness.net [70.91.206.178]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by canonware.com (Postfix) with ESMTPSA id DB7FA28417; Mon, 2 Apr 2012 13:31:08 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=windows-1252 From: Jason Evans In-Reply-To: <4F79F020.9070504@freebsd.org> Date: Mon, 2 Apr 2012 13:31:07 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <3C11DB18-1C43-446E-A0BC-FC15C6126819@canonware.com> References: <2FF97057-905D-4F02-9138-75680ABC6202@canonware.com> <4F79F020.9070504@freebsd.org> To: Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1257) Cc: freebsd-arch@freebsd.org Subject: Re: TLS on ARM and MIPS X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jasone@freebsd.org List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2012 20:31:10 -0000 On Apr 2, 2012, at 11:29 AM, Oleksandr Tymoshenko wrote: > On 02/04/2012 11:04 AM, Jason Evans wrote: >> I've been working on integrating jemalloc back into FreeBSD's libc, = and ran into the lack of TLS on ARM and MIPS. Is this something that's = likely to be addressed soon? If not, I'm going to have to modify libthr = to deal with TSD bootstrapping issues -- FreeBSD's pthreads = implementation *loves* to call malloc. =3D( >>=20 >> While I'm asking about TLS, it's worth asking whether any of the = other platforms still lack TLS support for non-PIC binaries. If so, = that will force the TSD issue anyway. >=20 > How old is your source base? >=20 > TLS support for ARM and MIPS has been committed about month ago. > Revisions r232577-r232582 and r233106,r233107 fixes for ARM. I'm currently running sources from March 24, but I don't have ARM or = MIPS hardware. Can we remove the NO_TLS definitions in = src/lib/libc/stdlib/malloc.c? I can't test the result, of course=85 Thanks, Jason=