server-skynet-source-3rd-je.../src
Leonard Crestez cb17fc6a8f 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>
2013-10-24 18:25:19 -07:00
..
arena.c Fix a Valgrind integration flaw. 2013-10-19 23:48:40 -07:00
atomic.c Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
base.c Fix Valgrind integration. 2013-01-31 17:02:53 -08:00
bitmap.c Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
chunk_dss.c Fix Valgrind integration. 2013-01-31 17:02:53 -08:00
chunk_mmap.c Fix mlockall()/madvise() interaction. 2012-10-08 18:04:49 -07:00
chunk.c Consistently use malloc_mutex_prefork(). 2013-10-21 14:59:10 -07:00
ckh.c Use config_* instead of JEMALLOC_*. 2013-01-22 12:14:45 -08:00
ctl.c Consistently use malloc_mutex_prefork(). 2013-10-21 14:59:10 -07:00
extent.c Reduce cpp conditional logic complexity. 2012-02-10 20:22:09 -08:00
hash.c Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
huge.c Add arena-specific and selective dss allocation. 2012-10-12 18:26:16 -07:00
jemalloc.c Delay pthread_atfork registering. 2013-10-24 16:40:31 -07:00
mb.c Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
mutex.c mark _pthread_mutex_init_calloc_cb as public explicitly 2012-10-10 09:10:37 -07:00
prof.c Fix a file descriptor leak in a prof_dump_maps() error path. 2013-10-21 15:07:40 -07:00
quarantine.c Fix two quarantine bugs. 2013-01-31 14:43:54 -08:00
rtree.c Fix fork(2)-related deadlocks. 2012-10-09 15:21:46 -07:00
stats.c Add arena-specific and selective dss allocation. 2012-10-12 18:26:16 -07:00
tcache.c Fix a data race for large allocation stats counters. 2013-10-21 15:00:06 -07:00
tsd.c Add support for LinuxThreads. 2013-10-24 18:25:19 -07:00
util.c Prefer not_reached() over assert(false) where appropriate. 2013-10-21 14:56:27 -07:00
zone.c Prefer not_reached() over assert(false) where appropriate. 2013-10-21 14:56:27 -07:00