From f488365867ab95574826ca295df785e613902a9b Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Tue, 19 Nov 2024 14:40:21 +0100 Subject: [PATCH] Mark heaps as unused when address sanitizer is enabled in thread queues --- .../schedulers/include/pika/schedulers/queue_holder_thread.hpp | 2 ++ libs/pika/schedulers/include/pika/schedulers/thread_queue.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libs/pika/schedulers/include/pika/schedulers/queue_holder_thread.hpp b/libs/pika/schedulers/include/pika/schedulers/queue_holder_thread.hpp index 2b3a1a3ef..3f6dbc81f 100644 --- a/libs/pika/schedulers/include/pika/schedulers/queue_holder_thread.hpp +++ b/libs/pika/schedulers/include/pika/schedulers/queue_holder_thread.hpp @@ -475,6 +475,8 @@ namespace pika::threads::detail { debug::detail::threadinfo(&tid)); } else +#else + PIKA_UNUSED(heap); #endif { // Allocate a new thread object. diff --git a/libs/pika/schedulers/include/pika/schedulers/thread_queue.hpp b/libs/pika/schedulers/include/pika/schedulers/thread_queue.hpp index 3fa75f24e..f8686bb4a 100644 --- a/libs/pika/schedulers/include/pika/schedulers/thread_queue.hpp +++ b/libs/pika/schedulers/include/pika/schedulers/thread_queue.hpp @@ -164,6 +164,8 @@ namespace pika::threads::detail { threads::detail::get_thread_id_data(thrd)->rebind(data); } else +# else + PIKA_UNUSED(heap); # endif #endif {