summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLeonard Crestez <lcrestez@ixiacom.com>2013-10-21 21:12:16 (GMT)
committerJason Evans <je@fb.com>2013-10-25 01:25:19 (GMT)
commitcb17fc6a8f1ce29be18de7af6d03e66056751fb2 (patch)
treeb102ae0685f01d59eaed2c1e764b0754a50e97ab /doc
parentac4403cacb225c0cf2c926179af39c21bd7bfc3a (diff)
downloadjemalloc-cb17fc6a8f1ce29be18de7af6d03e66056751fb2.zip
jemalloc-cb17fc6a8f1ce29be18de7af6d03e66056751fb2.tar.gz
jemalloc-cb17fc6a8f1ce29be18de7af6d03e66056751fb2.tar.bz2
Add support for LinuxThreads.
When using LinuxThreads pthread_setspecific triggers recursive allocation on all threads. Work around this by creating a global linked list of in-progress tsd initializations. This modifies the _tsd_get_wrapper macro-generated function. When it has to initialize an TSD object it will push the item to the linked list first. If this causes a recursive allocation then the _get_wrapper request is satisfied from the list. When pthread_setspecific returns the item is removed from the list. This effectively adds a very poor substitute for real TLS used only during pthread_setspecific allocation recursion. Signed-off-by: Crestez Dan Leonard <lcrestez@ixiacom.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions