Loading...
--- libmalloc/libmalloc-116/src/platform.h
+++ libmalloc/libmalloc-140.50.6/src/platform.h
@@ -96,6 +96,15 @@
 #define CONFIG_SMALL_CUTTOFF_127KB 1
 #endif // MALLOC_TARGET_IOS
 
+#if CONFIG_NANOZONE
+// <rdar://problem/35305995>
+#if MALLOC_TARGET_IOS && TARGET_OS_IOS
+#define CONFIG_NANO_SMALLMEM_DYNAMIC_DISABLE_35305995 1
+#else
+#define CONFIG_NANO_SMALLMEM_DYNAMIC_DISABLE_35305995 0
+#endif
+#endif
+
 // memory resource exception handling
 #if MALLOC_TARGET_IOS || TARGET_OS_SIMULATOR
 #define ENABLE_MEMORY_RESOURCE_EXCEPTION_HANDLING 0
@@ -106,4 +115,7 @@
 // presence of commpage memsize
 #define CONFIG_HAS_COMMPAGE_MEMSIZE 1
 
+// presence of commpage number of cpu count
+#define CONFIG_HAS_COMMPAGE_NCPUS 1
+
 #endif // __PLATFORM_H