Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libpthread

Module Name:    src
Committed By:   drochner
Date:           Wed Apr  1 10:13:24 UTC 2009

Modified Files:
        src/lib/libpthread: pthread.c

Log Message:
Fix the comparision function used by the red-black tree global thread list
-don't return a difference, this can overflow
-don't try to substract typed pointers which don't belong to the
 same object, this gives undefined results

This fixes instabilities of programs which use more than a handful
of threads, eg spuriously failing pthread_join().

To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/lib/libpthread/pthread.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index