summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_exit.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-10-23 23:28:36 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-10-23 23:28:36 +0000
commitdf721e35be3c19465326438aaee1cf0445ce76b9 (patch)
tree95da86c441c1081dff7d70fbd4ecebcf91db48ea /lib/libpthread/thread/thr_exit.c
parent590558cea722536b653cc600ce15022b909daf8d (diff)
downloadFreeBSD-src-df721e35be3c19465326438aaee1cf0445ce76b9.zip
FreeBSD-src-df721e35be3c19465326438aaee1cf0445ce76b9.tar.gz
1. Move thread list flags into new separate member, and atomically
put DEAD thread on GC list, this closes a race between pthread_join and thr_cleanup. 2. Introduce a mutex to protect tcb initialization, tls allocation and deallocation code in rtld seems no lock protection or it is broken, under stress testing, memory is corrupted. Reviewed by: deischen patch partly provided by: deischen
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud