The comments in dfa indicate that at some point read memory barriers would
be added, as require for lax memory systems such as Alpha.
Here is a patch that adds memory barrier support on Alpha (although not
tested on an alpha).

This patch is used in Debian's re2, as we replace atomicops.h code with
inlined memory barrier functions provided by libatomic-ops. Thus we don't
need to support every architecture in RE2, but we do need read memory
barriers in the lock-free search code.

R=rsc
CC=re2-dev
http://codereview.appspot.com/1020043
2 files changed