From e09f0086565e64c6a6ba550c8e48daac3abdc88b Mon Sep 17 00:00:00 2001 From: Aditya Kamath Date: Wed, 20 May 2026 04:13:59 -0500 Subject: [PATCH 2/2] Add AIX for cpu affinity in jemalloc --- src/background_thread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/background_thread.c b/src/background_thread.c index 3bb8d26c..4077226c 100644 --- a/src/background_thread.c +++ b/src/background_thread.c @@ -80,6 +80,10 @@ background_thread_info_init(tsdn_t *tsdn, background_thread_info_t *info) { static inline bool set_current_thread_affinity(int cpu) { +#if defined(_AIX) + /* AIX does not support CPU affinity */ + return true; +#else #if defined(JEMALLOC_HAVE_SCHED_SETAFFINITY) cpu_set_t cpuset; #else @@ -110,6 +114,7 @@ set_current_thread_affinity(int cpu) { # endif return ret != 0; #endif +#endif /* _AIX */ } #define BILLION UINT64_C(1000000000) -- 2.51.2