Skip to content

Commit 7b0f284

Browse files
committed
fix compile for main
1 parent efa4506 commit 7b0f284

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

cachelib/allocator/CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ add_library (cachelib_allocator
2727
${SERIALIZE_THRIFT_FILES}
2828
${DATASTRUCT_SERIALIZE_THRIFT_FILES}
2929
${MEMORY_SERIALIZE_THRIFT_FILES}
30-
CacheAllocator.cpp
30+
CacheAllocatorLru2QCache.cpp
31+
CacheAllocatorLru5B2QCache.cpp
32+
CacheAllocatorLru5BCache.cpp
33+
CacheAllocatorLru5BCacheWithSpinBuckets.cpp
34+
CacheAllocatorLruCache.cpp
35+
CacheAllocatorLruCacheWithSpinBuckets.cpp
36+
CacheAllocatorTinyLFU5BCache.cpp
37+
CacheAllocatorTinyLFUCache.cpp
38+
CacheAllocatorWTinyLFU5BCache.cpp
39+
CacheAllocatorWTinyLFUCache.cpp
3140
Cache.cpp
3241
CacheDetails.cpp
3342
CacheStats.cpp

cachelib/allocator/memory/CompressedPtr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class CACHELIB_PACKED_ATTR CompressedPtr5B {
252252
: ptr_(compress(slabIdx, allocIdx, isMultiTiered, tid)),
253253
regionIdx_(getRegionIdx(slabIdx, isMultiTiered, tid)) {}
254254

255-
constexpr explicit CompressedPtr5B(PtrType ptr) noexcept
255+
CompressedPtr5B(PtrType ptr) noexcept
256256
: ptr_(deserializePtr(ptr)), regionIdx_(deserializeRegion(ptr)) {}
257257

258258
// number of bits for the Allocation offset in a slab. With slab size of 22

cachelib/allocator/memory/tests/TestBase.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AllocTestBase : public testing::Test {
7777
}
7878

7979
template <typename CompressedPtrType>
80-
CompressedPtrType::PtrType compress(CompressedPtrType ptr,
80+
typename CompressedPtrType::PtrType compress(CompressedPtrType ptr,
8181
uint32_t slabIdx,
8282
uint32_t allocIdx,
8383
bool isMultiTiered) {

0 commit comments

Comments
 (0)