diff --git a/src/common/memory/MemoryTracker.h b/src/common/memory/MemoryTracker.h index 10022d0596d..d06f3ab7a94 100644 --- a/src/common/memory/MemoryTracker.h +++ b/src/common/memory/MemoryTracker.h @@ -13,9 +13,9 @@ namespace memory { constexpr size_t #if defined(__cpp_lib_hardware_interference_size) - L1_CACHE_LINE_SIZE = hardware_destructive_interference_size; + CACHE_LINE_SIZE = hardware_destructive_interference_size; #else - L1_CACHE_LINE_SIZE = 64; + CACHE_LINE_SIZE = 64; #endif // Memory stats for each thread. @@ -121,7 +121,7 @@ class MemoryStats { private: // Global - alignas(L1_CACHE_LINE_SIZE) int64_t limit_{std::numeric_limits::max()}; + alignas(CACHE_LINE_SIZE) int64_t limit_{std::numeric_limits::max()}; std::atomic used_{0}; // Thread Local static thread_local ThreadMemoryStats threadMemoryStats_;