On Thu, Feb 25, 2010 at 06:23:16PM -0500, Mathieu Desnoyers wrote:
[...]
Acked-by: Josh Triplett <josh@joshtriplett.org>
I agree that v9 seems ready for inclusion.
Out of curiosity, do you have any benchmarks for the case of not
detecting sys_membarrier dynamically? Detecting it at library
initialization time, for instance, or even just compiling to assume its
presence? I'd like to know how much that would improve the numbers.
If significant, it might make sense to try to have a mechanism similar
to SMP alternatives, to have different code in either case. dlopen,
function pointers, runtime code patching (nop out the rmb), or similar.
- Josh Triplett
--