Skip to content

Commit

Permalink
Mark heaps as unused when address sanitizer is enabled in thread queues
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Nov 20, 2024
1 parent 79aa245 commit f488365
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ namespace pika::threads::detail {
debug::detail::threadinfo<threads::detail::thread_id_ref_type*>(&tid));
}
else
#else
PIKA_UNUSED(heap);
#endif
{
// Allocate a new thread object.
Expand Down
2 changes: 2 additions & 0 deletions libs/pika/schedulers/include/pika/schedulers/thread_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ namespace pika::threads::detail {
threads::detail::get_thread_id_data(thrd)->rebind(data);
}
else
# else
PIKA_UNUSED(heap);
# endif
#endif
{
Expand Down

0 comments on commit f488365

Please sign in to comment.