[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/3] atomics: do not emit consume barrier for
Re: [Qemu-devel] [PATCH v2 3/3] atomics: do not emit consume barrier for atomic_rcu_read
Wed, 25 May 2016 14:20:02 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0
On 24/05/2016 22:06, Emilio G. Cota wrote:
> Currently we emit a consume-load in atomic_rcu_read. This is
> overkill for non-Sparc hosts, and is only useful to make
> things easier for Thread Sanitizer, which as far as I understand
> works best without explicit fences.
Currently we emit a consume-load in atomic_rcu_read. Because of
limitations in current compilers, this is overkill for non-Alpha hosts
and it is only useful to make Thread Sanitizer work.
+/* See above: most compilers currently treat consume and acquire the
+ * same, but this slows down atomic_rcu_read unnecessarily.