qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] mttcg: Move tb lock asserts under DEBUG_LOCKING


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH] mttcg: Move tb lock asserts under DEBUG_LOCKING
Date: Tue, 15 Nov 2016 08:48:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]