Loading...
--- libmalloc/libmalloc-409.81.2/src/nano_malloc_common.h
+++ libmalloc/libmalloc-283.100.5/src/nano_malloc_common.h
@@ -24,8 +24,16 @@
#ifndef __NANO_MALLOC_COMMON_H
#define __NANO_MALLOC_COMMON_H
+// Definitions that are common to Nano V1 and Nano V2.
+#if TARGET_OS_OSX || TARGET_OS_SIMULATOR || TARGET_OS_DRIVERKIT
+#define NANO_PREALLOCATE_BAND_VM 0
+#else // TARGET_OS_OSX || TARGET_OS_SIMULATOR || TARGET_OS_DRIVERKIT
+#define NANO_PREALLOCATE_BAND_VM 1 // pre-allocate reserved vm range
+#endif // TARGET_OS_OSX || TARGET_OS_SIMULATOR || TARGET_OS_DRIVERKIT
+
typedef enum {
NANO_NONE = 0,
+ NANO_V1 = 1,
NANO_V2 = 2,
} nano_version_t;