From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5JBc-0002Xm-Tc for qemu-devel@nongnu.org; Tue, 24 May 2016 16:44:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5JBY-0006zO-La for qemu-devel@nongnu.org; Tue, 24 May 2016 16:44:19 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:52605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5JBW-0006vl-CJ for qemu-devel@nongnu.org; Tue, 24 May 2016 16:44:16 -0400 Date: Tue, 24 May 2016 16:44:04 -0400 From: "Emilio G. Cota" Message-ID: <20160524204404.GA11484@flamenco> References: <1464120374-8950-1-git-send-email-cota@braap.org> <1464120374-8950-3-git-send-email-cota@braap.org> <5744B50B.5040001@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5744B50B.5040001@gmail.com> Subject: Re: [Qemu-devel] [PATCH v2 2/3] atomics: emit an smp_read_barrier_depends() barrier only for Sparc and Thread Sanitizer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov Cc: QEMU Developers , MTTCG Devel , Alex =?iso-8859-1?Q?Benn=E9e?= , Paolo Bonzini , Richard Henderson On Tue, May 24, 2016 at 23:09:47 +0300, Sergey Fedorov wrote: > On 24/05/16 23:06, Emilio G. Cota wrote: > > For correctness, smp_read_barrier_depends() is only required to > > emit a barrier on Sparc hosts. However, we are currently emitting > > a consume fence unconditionally. > > > > Fix it by keeping the consume fence if we're compiling with Thread > > Sanitizer, since this might help prevent false warnings. Otherwise, > > only emit the barrier for Sparc hosts. Note that we still guarantee > > that smp_read_barrier_depends() is a compiler barrier. > > s/Sparc/Alpha/? Obviously :-) Typo also in patch 3 -- apologies. E.