mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
eb6ad54731
commit
a23654d77d
1 file changed
+4
@@ -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;
|
||||
|
||||
|
||||