diff --git a/storage/innobase/include/ut0counter.h b/storage/innobase/include/ut0counter.h index 1e3008a..6b8f80c 100644 --- a/storage/innobase/include/ut0counter.h +++ b/storage/innobase/include/ut0counter.h @@ -32,11 +32,11 @@ Created 2012/04/12 by Sunny Bains #include "os0thread.h" /** CPU cache line size */ -#ifdef __powerpc__ +#if defined(__powerpc__) || defined(__aarch64__) #define CACHE_LINE_SIZE 128 #else #define CACHE_LINE_SIZE 64 -#endif /* __powerpc__ */ +#endif /* __powerpc__ && __aarch64__*/ /** Default number of slots to use in ib_counter_t */ #define IB_N_SLOTS 64 diff --git a/storage/ndb/memcache/include/ndbmemcache_global.h b/storage/ndb/memcache/include/ndbmemcache_global.h index b94da82..9975ad2 100644 --- a/storage/ndb/memcache/include/ndbmemcache_global.h +++ b/storage/ndb/memcache/include/ndbmemcache_global.h @@ -33,8 +33,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #define END_FUNCTIONS_WITH_C_LINKAGE #endif -/* CPU cache line size; a constant 64 for now. */ -#define CACHE_LINE_SIZE 64 +/** CPU cache line size */ +#if defined(__powerpc__) || defined(__aarch64__) +#define CACHE_LINE_SIZE 128 +#else +#define CACHE_LINE_SIZE 64 +#endif /* __powerpc__ && __aarch64__*/ /* A memcached constant; also defined in default_engine.h */ #define POWER_LARGEST 200