------- Comment #11 from dave at hiauly1 dot hia dot nrc dot ca  2006-09-23 
18:03 -------
Subject: Re:  [4.2 Regression] Timeouts in libstdc++, libjava and libgomp
testsuites

> > Does hpux use the hppa atomics config, or the generic layer? If it uses the
> > hppa atomics config, why isn't this a problem on hpux?
> 
> I believe they use the same atomics.  I think it points to a pthread
> issue.

Further to this point, I used strace to look at pthread6 while it
was executing.  I see a continuous stream of sched_yield calls with
a few nanosleep calls every so often.  Thus, I think the code is
spinning in __pthread_acquire.

This would happen if spinlock/mutex initialization is broken.  Proper
initialization is needed on hppa-linux because locked is 0 and unlocked
is 1.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29118

Reply via email to