Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform proper calculation for stack space available when on OSX #7

Open
richwaters opened this issue Aug 22, 2013 · 0 comments
Open

Comments

@richwaters
Copy link
Member

OSX does not have pthread_getattr_np, but it does have pthread_getstacksize_np and a similar function to get the stackaddr. These should be used to calculate the correct stacksize and replace the current mechanism, which uses an educated (somewhat) guess.

This is necessary to prevent crashes for patterns that require a lot of recursion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant