Date: Sat, 23 Oct 2004 23:28:36 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread/thread thr_create.cthr_find_thread.c thr_kern.c thr_private.h thr_sig.c Message-ID: <200410232328.i9NNSaBT033519@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
davidxu 2004-10-23 23:28:36 UTC FreeBSD src repository Modified files: lib/libpthread/thread thr_create.c thr_find_thread.c thr_kern.c thr_private.h thr_sig.c Log: 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 Revision Changes Path 1.58 +1 -0 src/lib/libpthread/thread/thr_create.c 1.14 +1 -1 src/lib/libpthread/thread/thr_find_thread.c 1.115 +27 -10 src/lib/libpthread/thread/thr_kern.c 1.119 +15 -11 src/lib/libpthread/thread/thr_private.h 1.81 +1 -2 src/lib/libpthread/thread/thr_sig.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410232328.i9NNSaBT033519>