diff options
Diffstat (limited to 'libc/bionic/pthread_create.cpp')
-rw-r--r-- | libc/bionic/pthread_create.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index 8bb1be9d..c99e69c9 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp | |||
@@ -191,7 +191,7 @@ int pthread_create(pthread_t* thread_out, pthread_attr_t const* attr, | |||
191 | // At offsets >= 0, we have the TLS slots. | 191 | // At offsets >= 0, we have the TLS slots. |
192 | // At offsets < 0, we have the child stack. | 192 | // At offsets < 0, we have the child stack. |
193 | thread->tls = reinterpret_cast<void**>(reinterpret_cast<uint8_t*>(thread->attr.stack_base) + | 193 | thread->tls = reinterpret_cast<void**>(reinterpret_cast<uint8_t*>(thread->attr.stack_base) + |
194 | thread->attr.stack_size - BIONIC_TLS_SLOTS * sizeof(void*)); | 194 | thread->attr.stack_size - BIONIC_ALIGN(BIONIC_TLS_SLOTS * sizeof(void*), 16)); |
195 | void* child_stack = thread->tls; | 195 | void* child_stack = thread->tls; |
196 | __init_tls(thread); | 196 | __init_tls(thread); |
197 | 197 | ||