File tree Expand file tree Collapse file tree
runtime-common/core/allocator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ constexpr uint64_t MALLOC_REPLACER_MAX_ALLOC = 0xFFFFFF00; // 4GiB
2323
2424namespace details {
2525struct control_block {
26- static constexpr auto SIZE_FIELD_BITSIZE{48 };
27- static constexpr auto BASE_OFFSET_FIELD_BITSIZE{16 };
28- static constexpr uint64_t BLOCK_SIZE_MASK{(1UL << SIZE_FIELD_BITSIZE) - 1 };
29- static constexpr uint64_t BASE_OFFSET_MASK{(1UL << BASE_OFFSET_FIELD_BITSIZE) - 1 };
26+ private:
27+ static inline constexpr auto SIZE_FIELD_BITSIZE{48 };
28+ static inline constexpr auto BASE_OFFSET_FIELD_BITSIZE{16 };
29+ static inline constexpr uint64_t BLOCK_SIZE_MASK{(1UL << SIZE_FIELD_BITSIZE) - 1 };
30+ static inline constexpr uint64_t BASE_OFFSET_MASK{(1UL << BASE_OFFSET_FIELD_BITSIZE) - 1 };
3031
32+ public:
3133 static constexpr uint64_t max_size () noexcept {
3234 return 1UL << SIZE_FIELD_BITSIZE;
3335 }
You can’t perform that action at this time.
0 commit comments