From b55919071fc872d880bebe70bc270b9d66d02ab0 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 16 Jun 2020 15:25:10 +0200 Subject: [PATCH] common/Thread: configure Seastar's memory allocator. Signed-off-by: Radoslaw Zarzynski --- src/common/Thread.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/Thread.cc b/src/common/Thread.cc index 45451040c4a..ccee3bc84d9 100644 --- a/src/common/Thread.cc +++ b/src/common/Thread.cc @@ -18,6 +18,10 @@ #include /* For SYS_xxx definitions */ #endif +#ifdef WITH_SEASTAR +#include "crimson/os/alienstore/alien_store.h" +#endif + #include "common/Thread.h" #include "common/code_environment.h" #include "common/debug.h" @@ -81,6 +85,9 @@ void *Thread::entry_wrapper() _set_affinity(cpuid); ceph_pthread_setname(pthread_self(), thread_name); +#ifdef WITH_SEASTAR + crimson::os::AlienStore::configure_thread_memory(); +#endif return entry(); } -- 2.39.5