Checking for redefinition of SNMALLOC_EXPOSE_PAGEMAP, since it can now be a cmake argument

This commit is contained in:
Roy Schuster
2019-04-12 10:10:58 +01:00
parent ebc1dab1cf
commit eb2b8a0c80
2 changed files with 6 additions and 2 deletions

View File

@@ -4,7 +4,9 @@
#define USE_RESERVE_MULTIPLE 1
#define NO_BOOTSTRAP_ALLOCATOR
#define IS_ADDRESS_SPACE_CONSTRAINED
#define SNMALLOC_EXPOSE_PAGEMAP
#ifndef SNMALLOC_EXPOSE_PAGEMAP
# define SNMALLOC_EXPOSE_PAGEMAP
#endif
#define SNMALLOC_NAME_MANGLE(a) enclave_##a
// Redefine the namespace, so we can have two versions.
#define snmalloc snmalloc_enclave

View File

@@ -1,7 +1,9 @@
#undef IS_ADDRESS_SPACE_CONSTRAINED
#define SNMALLOC_NAME_MANGLE(a) host_##a
#define NO_BOOTSTRAP_ALLOCATOR
#define SNMALLOC_EXPOSE_PAGEMAP
#ifndef SNMALLOC_EXPOSE_PAGEMAP
# define SNMALLOC_EXPOSE_PAGEMAP
#endif
// Redefine the namespace, so we can have two versions.
#define snmalloc snmalloc_host
#include "../../../override/malloc.cc"