Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Apr 2012 14:15:58 -0700
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        freebsd-arch@freebsd.org, jasone@canonware.com
Subject:   Re: TLS on ARM and MIPS
Message-ID:  <4F7A170E.8020209@bluezbox.com>
In-Reply-To: <3C11DB18-1C43-446E-A0BC-FC15C6126819@canonware.com>
References:  <2FF97057-905D-4F02-9138-75680ABC6202@canonware.com> <4F79F020.9070504@freebsd.org> <3C11DB18-1C43-446E-A0BC-FC15C6126819@canonware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/04/2012 1:31 PM, Jason Evans wrote:
> 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. =(
>>>
>>> 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.
>>
>> How old is your source base?
>>
>> 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…

How do I test it? Will running buildword on MIPS device with
these changes be sufficient? Or do we have specific tests for it?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F7A170E.8020209>