Loading...
--- libmalloc/libmalloc-317.40.8/src/base.h
+++ libmalloc/libmalloc-374.40.6/src/base.h
@@ -71,7 +71,14 @@
 #   define MALLOC_CACHE_LINE 128
 #   define MALLOC_NANO_CACHE_LINE 64
 #elif defined(__arm__) || defined(__arm64__)
-#   define MALLOC_CACHE_LINE 64
+#	if TARGET_OS_OSX || TARGET_OS_DRIVERKIT || TARGET_OS_SIMULATOR
+// To make zone structure layout match to support introspecting a Rosetta process
+// from a native process or vice versa on macOS. See comment in
+// quarantine_diagnose_fault_from_crash_reporter.
+#   	define MALLOC_CACHE_LINE 128
+#	else
+#   	define MALLOC_CACHE_LINE 64
+#	endif
 #   define MALLOC_NANO_CACHE_LINE 64
 #else
 #   define MALLOC_CACHE_LINE 32