More on memory barriers

Geoffrey Keating geoffk@apple.com
Wed Sep 15 02:28:00 GMT 2004


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>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2361 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040915/e7960d28/attachment.p7s>


More information about the Gcc mailing list