diff options
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/pt-thread-terminate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mach/pt-thread-terminate.c b/sysdeps/mach/pt-thread-terminate.c index 6672065..cb9e26a 100644 --- a/sysdeps/mach/pt-thread-terminate.c +++ b/sysdeps/mach/pt-thread-terminate.c @@ -42,7 +42,9 @@ __pthread_thread_terminate (struct __pthread *thread) if (thread->stack) { stackaddr = thread->stackaddr; - stacksize = thread->stacksize; + stacksize = ((thread->guardsize + __vm_page_size-1) + / __vm_page_size) * __vm_page_size + + thread->stacksize; } else { |