mcst-linux-kernel/patches-2024.06.26/redis-5.0.14/0001-define-jemalloc-LG_QUA...

19 lines
733 B
Diff

Define jemalloc LG_QUANTUM for e2k.
diff -rupN a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
--- a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h 2020-02-06 13:25:55.708482193 +0300
+++ b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h 2020-02-06 13:36:01.420720480 +0300
@@ -110,6 +110,12 @@ typedef int malloc_cpuid_t;
# ifdef __le32__
# define LG_QUANTUM 4
# endif
+# ifdef __e2k__
+# define LG_QUANTUM 4
+# endif
+# ifdef __sparc__
+# define LG_QUANTUM 4
+# endif
# ifndef LG_QUANTUM
# error "Unknown minimum alignment for architecture; specify via "
"--with-lg-quantum"