Subject: CVS commit: [nathanw_sa] src/lib/libpthread/arch/powerpc
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 01/14/2003 05:36:56
Module Name: src
Committed By: nathanw
Date: Tue Jan 14 03:36:55 UTC 2003
Modified Files:
src/lib/libpthread/arch/powerpc [nathanw_sa]: pthread_switch.S
Log Message:
Rewrite pthread__switch() and adjust pthread__locked_switch() to
avoid storing the new saved-context pointer while still using the old
stack. This avoids a race condition with pthread__find_interrupted()
where a thread could lose its old state if it was interrupted in a
certain window in pthread__switch().
To generate a diff of this commit:
cvs rdiff -r1.1.2.9 -r1.1.2.10 \
src/lib/libpthread/arch/powerpc/pthread_switch.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.