cvs commit: src/lib/libpthread/thread thr_create.cthr_find_thread.c thr_kern.c thr_private.h thr_sig.c

David Xu davidxu at FreeBSD.org
Sat Oct 23 16:28:37 PDT 2004


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


More information about the cvs-all mailing list