Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Julia backport: darwin: make thread stack multiple of page size #45

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

ararslan
Copy link
Member

This backports commit 28d160f from upstream that should fix JuliaLang/julia#24169.

pthread_attr_setstacksize() expects that the stack size is a multiple of
the page size so make sure that it is.

Fixes a regression introduced in commit 3db07cc ("osx: set the default
thread stack size to RLIMIT_STACK") that made the program abort under
certain configurations; GNU Emacs on OS X apparently sets RLIMIT_STACK
to odd values when executing child processes.

Fixes: nodejs/node#6563
PR-URL: libuv/libuv#864
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
(cherry picked from commit 28d160f)
@ararslan ararslan requested a review from vtjnash October 17, 2017 20:30
@ararslan ararslan merged commit d8ab1c6 into julia-uv1.9.0 Oct 18, 2017
@ararslan ararslan deleted the aa/upstream-patch branch October 18, 2017 06:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants