Subject: Re: CVS commit: [nathanw_sa] src/lib/libpthread/arch/i386
To: Nathan J Williams <firstname.lastname@example.org>
From: Jason R Thorpe <email@example.com>
Date: 01/02/2003 13:42:05
On Thu, Jan 02, 2003 at 11:32:12PM +0200, Nathan J Williams wrote:
Is this problem present in the other machdep bits of libpthread?
> Module Name: src
> Committed By: nathanw
> Date: Thu Jan 2 21:32:12 UTC 2003
> Modified Files:
> src/lib/libpthread/arch/i386 [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() or pthread__locked_switch() (the
> latter was never actually observed, but appeared possible).
> To generate a diff of this commit:
> cvs rdiff -r188.8.131.52 -r184.108.40.206 src/lib/libpthread/arch/i386/pthread_switch.S
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
-- Jason R. Thorpe <firstname.lastname@example.org>