Date: Wed, 10 Mar 1999 11:21:15 -0800 From: John Plevyak <jplevyak@inktomi.com> To: "Richard Seaman, Jr." <dick@tar.com>, John Plevyak <jplevyak@inktomi.com> Cc: hackers@freebsd.org Subject: Re: bug in linuxthreads for FreeBSD Message-ID: <19990310112115.B16206@proxydev.inktomi.com> In-Reply-To: <19990310105944.F4440@tar.com>; from Richard Seaman, Jr. on Wed, Mar 10, 1999 at 10:59:44AM -0600 References: <19990309172626.A7182@proxydev.inktomi.com> <19990310105944.F4440@tar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 10, 1999 at 10:59:44AM -0600, Richard Seaman, Jr. wrote: > On Tue, Mar 09, 1999 at 05:26:26PM -0800, John Plevyak wrote: > > > I have been using the linuxthreads for FreeBSD port, and running > > it under high stress. > > Glad to see it. Also glad you can only find *one* bug :) Actually, the p_nextwaiting list has a tendency to circularize as well, but I am still working on that :) > > > Also, there is no 'lock prefix' before the xchg in _atomic_lock.S which > > will prevent the library from working correctly with SMP. > > I'd like to know more about this. According to the Intel documents > I have, the xchg op code implies a 'lock prefix'. You can add the > 'lock prefix', but its redundant. Your right, that's what I get for assuming any consistency in the x86 ISA. > > -- > Richard Seaman, Jr. email: dick@tar.com > 5182 N. Maple Lane phone: 414-367-5450 > Chenequa WI 53058 fax: 414-367-5852 > *** condvar.c.orig Wed Mar 10 10:12:49 1999 > --- condvar.c Wed Mar 10 10:13:37 1999 > *************** > *** 152,157 **** > --- 152,158 ---- > > #endif > /* Otherwise, return normally */ > + remove_from_queue(&cond->c_waiting, self); > release(&cond->c_spinlock); > pthread_mutex_lock(mutex); > return 0; Testing now. I'll keep you informed. -- John Bradley Plevyak, PhD, jplevyak@inktomi.com, PGP KeyID: 051130BD Inktomi Corporation, 1900 S. Norfolk Street, Suite 110, San Mateo, CA 94403 W:(415)653-2830 F:(415)653-2801 P:(888)491-1332/5103192436.4911332@pagenet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990310112115.B16206>