[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.
This commit is contained in:
Justin C. Miller
2024-02-13 20:06:10 -08:00
parent 337b8bb36b
commit c05b4211fa

View File

@@ -69,6 +69,7 @@ public:
thread(const thread&) = delete; thread(const thread&) = delete;
private: private:
__attribute__ ((force_align_arg_pointer))
static void init_proc(thread *t) static void init_proc(thread *t)
{ {
t->m_proc(); t->m_proc();