[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen: make CONFIG_DEBUG_LOCKS usable without CONFIG_DEBUG
On 09.01.2020 11:07, George Dunlap wrote: > On 1/9/20 5:40 AM, Juergen Gross wrote: >> In expert mode it is possible to enable CONFIG_DEBUG_LOCKS without >> having enabled CONFIG_DEBUG. The coding is depending on CONFIG_DEBUG >> as it is using ASSERT(), however. > > Any reason not to use BUG_ON() in that case? > > Having two different asserts is almost certainly going to cause bugs. Furthermore, assert() is a C standard library construct, mandated to be controlled by NDEBUG. I.e. if anything at all, ASSERT() could be made behave differently, but of course this would be quite big a change to the code base. +1 to (continue) using BUG_ON() anywhere we want more than just debug build checking. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |