Loading...
--- libmalloc/libmalloc-715.120.13/src/base.h
+++ libmalloc/libmalloc-792.60.6/src/base.h
@@ -46,6 +46,12 @@
 		__builtin_trap(); \
 	} \
 })
+
+#ifdef DEBUG
+#define MALLOC_DEBUG_ASSERT(e) MALLOC_ASSERT(e)
+#else
+#define MALLOC_DEBUG_ASSERT(e)
+#endif
 
 #define MALLOC_FATAL_ERROR(cause, message) ({ \
 		_os_set_crash_log_cause_and_message((cause), "FATAL ERROR - " message); \
@@ -198,10 +204,16 @@
 #define MALLOC_NO_POPULATE (1 << 9)
 // enable faulting anywhere within this allocation
 #define MALLOC_CAN_FAULT (1 << 12)
+// guarded metadata allocation
+#define MALLOC_GUARDED_METADATA (1 << 13)
 
 // See malloc_implementation.h
 // MALLOC_MSL_LITE_WRAPPED_ZONE_FLAGS == (1 << 10)
 
+#if CONFIG_MTE
+// allocate objects such that they can be MTE-tagged
+#define MALLOC_MTE_TAGGABLE (1 << 11)
+#endif
 
 /*
  * These commpage routines provide fast access to the logical cpu number