x86/mem_sharing: enable mem_share audit mode only in debug builds

Improves performance for release builds.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
This commit is contained in:
Tamas K Lengyel authored and Jan Beulich committed 2019-07-19 13:49:26 +02:00
1 parent eb6ad54731
commit a23654d77d
1 file changed
+4
+4
View File
@@ -25,7 +25,11 @@
#include <public/memory.h>
/* Auditing of memory sharing code? */
#ifndef NDEBUG
#define MEM_SHARING_AUDIT 1
#else
#define MEM_SHARING_AUDIT 0
#endif
typedef uint64_t shr_handle_t;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.