summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/tls.c
Commit message (Collapse)AuthorAgeFilesLines
* Import jemalloc a8f8d7540d66ddee7337db80c92890916e1063ca (dev branch,jasone2012-04-221-12/+12
| | | | | | | | | prior to 3.0.0 release). This fixes several bugs related to memory initialization. Mangle __jemalloc_a0{malloc,calloc,free}() just like all the other library-internal symbols in jemalloc, and adjust the tls allocation code in libc to use the mangled names.
* Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch,jasone2012-04-171-9/+14
| | | | | | | | prior to 3.0.0 release) as contrib/jemalloc, and integrate it into libc. The code being imported by this commit diverged from lib/libc/stdlib/malloc.c in March 2010, which means that a portion of the jemalloc 1.0.0 ChangeLog entries are relevant, as are the entries for all subsequent releases.
* - Switch ARM and MIPS to TLS Variant Igonzo2012-03-061-3/+10
| | | | | | - Fix TLS allocation for Variant I: both rtld and libc allocators assume that tls_static_space includes space for TLS structure. So increment calculated static size by the size of it.
* The static TLS size as given by tls_static_space includes TLS_TCB_SIZEmarcel2010-02-161-2/+2
| | | | bytes of TCB in variant I.
* o Add MIPS to the list of architectures with defined TLS_TCB_ALIGNgonzo2008-04-291-2/+2
| | | | | | o Stick with TLS Variant II for MIPS for the moment. Approved by: imp
* Don't assert() the TLS allocation requested is big enough; justkientzle2007-02-251-2/+2
| | | | | | fix the argument. In particular, this is a step towards breaking crt1's dependence on stdio.
* Fix TLS on sparc64 for statically and dynamically linked binarieskmacy2006-10-081-1/+10
| | | | | Approved by: rwatson (mentor) Reviewed by: jmg and marcel
* Fix style(9) in code copied from rtld.marcel2006-09-011-3/+3
|
* Fix the variant I allocation for KSE: Allow a larger TCB and assumemarcel2006-09-011-46/+37
| | | | | that the documented TCB is at the tail of the extended TCB. In other words, the base of the TCB has a negative offset from the TLS.
* Remove stale comment about armimp2006-07-261-2/+0
|
* Allocate space for thread pointer, this allows thread library to accessdavidxu2006-03-281-3/+3
| | | | its pointer from begin, and simplifies _get_curthread() in libthr.
* Use __weak_reference macro to define weak symbols.davidxu2005-03-211-31/+51
|
* Fix incorrect comment.davidxu2005-03-011-1/+1
|
* Mark _rtld_allocate_tls and _rtld_free_tls as weak symbols for Variant Idavidxu2005-02-261-0/+5
| | | | | | tls. Reviewed by: dfr
* Arbitraly choose the Variant II for arm.cognet2004-09-231-1/+2
|
* Make sure we allocate at least enough space for the TCB for variant I TLS.dfr2004-08-231-0/+2
| | | | MFC after: 3 days
* Always allocate a TLS area even if its empty - libpthread relies ondfr2004-08-181-7/+4
| | | | | | having a valid %gs when it initialises. MFC after: 2 days
* Add support for TLS in statically linked programs.dfr2004-08-151-2/+225
|
* Add stubs for TLS functions. These will be replaced at runtime by thedfr2004-08-031-0/+69
functional versions in rtld.
OpenPOWER on IntegriCloud