Memory barriers

Poul-Henning Kamp phk at phk.freebsd.dk
Tue May 18 10:17:23 CEST 2010


In message <4BF24C0A.40508 at schokola.de>, Nils Goroll writes:

>http://varnish-cache.org/changeset/4796
>
>Once you're at it, it would appear to me that adding differentiated macros for
>load/store/both (AMD64: lfence/sfence/mfence) or even more specific macros was >a good idea.

Only if I need them.

The membars I need are (until now) only for store order since the data 
structures in question are internally consistent with the right store order.

This stuff is still experimental any way, so I'm not making any
firm decisions yet.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.




More information about the varnish-dev mailing list