Skip to content

Commit

Permalink
small rename
Browse files Browse the repository at this point in the history
  • Loading branch information
czpmango committed Dec 28, 2022
1 parent db7201c commit c89a121
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/memory/MemoryTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -121,7 +121,7 @@ class MemoryStats {

private:
// Global
alignas(L1_CACHE_LINE_SIZE) int64_t limit_{std::numeric_limits<int64_t>::max()};
alignas(CACHE_LINE_SIZE) int64_t limit_{std::numeric_limits<int64_t>::max()};
std::atomic<int64_t> used_{0};
// Thread Local
static thread_local ThreadMemoryStats threadMemoryStats_;
Expand Down

0 comments on commit c89a121

Please sign in to comment.