diff --git a/src/mem/alloc.h b/src/mem/alloc.h index c7dac3c..f5f3fe3 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -234,7 +234,7 @@ namespace snmalloc FastFreeLists() : small_fast_free_lists() {} }; - ALWAYSINLINE inline void* no_replacement(void*) + SNMALLOC_FAST_PATH void* no_replacement(void*) { return nullptr; } diff --git a/src/mem/threadalloc.h b/src/mem/threadalloc.h index 461172e..ede455d 100644 --- a/src/mem/threadalloc.h +++ b/src/mem/threadalloc.h @@ -326,7 +326,7 @@ namespace snmalloc * so. If we have not allocated a per-thread allocator yet, then this * function will allocate one. */ - ALWAYSINLINE inline void* lazy_replacement(void* existing) + ALWAYSINLINE void* lazy_replacement(void* existing) { if (existing != &GlobalPlaceHolder) {