mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user