This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More on memory barriers



On 14/09/2004, at 2:25 PM, Jason Merrill wrote:


Or is it the case on all of these targets that using a more heavyweight
barrier (i.e. sync on PPC) invalidates speculative loads on other
processors?

It's certainly the case on PPC.


(I would suggest using 'sync' on the initialization path rather than having a 'lwsync' on both paths. Even though 'sync' is more expensive, I would expect that the non-initialization path will be much more common.)

--
Geoff Keating <geoffk@apple.com>

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]