Received: from eggs.gnu.org ([2001:4830:134:3::10]:54716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6YTq-00037F-8q for qemu-devel@nongnu.org; Tue, 15 Nov 2016 02:48:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6YTm-000405-Ch for qemu-devel@nongnu.org; Tue, 15 Nov 2016 02:48:34 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:35990) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6YTm-0003zi-4n for qemu-devel@nongnu.org; Tue, 15 Nov 2016 02:48:30 -0500 Received: by mail-wm0-x236.google.com with SMTP id g23so149047438wme.1 for ; Mon, 14 Nov 2016 23:48:29 -0800 (PST) Sender: Richard Henderson References: <20161115054135.12195-1-bobby.prani@gmail.com> From: Richard Henderson Message-ID: <08ced8d0-c7de-375a-cd54-6031016e48c5@twiddle.net> Date: Tue, 15 Nov 2016 08:48:25 +0100 MIME-Version: 1.0 In-Reply-To: <20161115054135.12195-1-bobby.prani@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] mttcg: Move tb lock asserts under DEBUG_LOCKING List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pranith Kumar , Paolo Bonzini , Peter Crosthwaite , "open list:Overall" On 11/15/2016 06:41 AM, Pranith Kumar wrote: > Move the asserts in tb_lock/unlock() to DEBUG_LOCKING to avoid the > assert checking overhead in normal builds. I know DEBUG_LOCKING already exists in translate-all.c, but I think both this and the old ought to be using CONFIG_DEBUG_TCG, so that it is regularly enabled. At which point you might as well use tcg_debug_assert instead of these wrappers around g_assert. r~