We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfbff10 commit f06a63dCopy full SHA for f06a63d
src/julia_internal.h
@@ -458,7 +458,11 @@ STATIC_INLINE uint8_t JL_CONST_FUNC jl_gc_szclass_align8(unsigned sz) JL_NOTSAFE
458
}
459
460
#define JL_SMALL_BYTE_ALIGNMENT 16
461
+#if defined(_CPU_AARCH64_) && defined(_OS_DARWIN_) // Apple silicon has 128 cache lines
462
+#define JL_CACHE_BYTE_ALIGNMENT 128
463
+#else
464
#define JL_CACHE_BYTE_ALIGNMENT 64
465
+#endif
466
// JL_HEAP_ALIGNMENT is the maximum alignment that the GC can provide
467
#define JL_HEAP_ALIGNMENT JL_SMALL_BYTE_ALIGNMENT
468
#define GC_MAX_SZCLASS (2032-sizeof(void*))
0 commit comments