From c05b4211fafbc52be090039d7e2afd4d773588c1 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Tue, 13 Feb 2024 20:06:10 -0800 Subject: [PATCH] [libj6] Make sure thread stacks are aligned Stacks were not 16-byte aligned when coming into j6::thread::init_proc, make sure it aligns stacks for SSE by adding the `force_align_arg_pointer` attribute. --- src/libraries/j6/include/j6/thread.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/j6/include/j6/thread.hh b/src/libraries/j6/include/j6/thread.hh index f61f222..e476541 100644 --- a/src/libraries/j6/include/j6/thread.hh +++ b/src/libraries/j6/include/j6/thread.hh @@ -69,6 +69,7 @@ public: thread(const thread&) = delete; private: + __attribute__ ((force_align_arg_pointer)) static void init_proc(thread *t) { t->m_proc();