Skip to content

[5.1] Increase the stack size limit for running llvm codegen threads to 8MB #23130

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

Conversation

aschwaighofer
Copy link
Contributor

Without this compilation may fail in llvm because we run out of stack space. The
limit for the main thread is 8MB on mac osx but 512KB for other threads.

rdar://47787344

…to 8MB

Without this compilation may fail in llvm because we run out of stack space. The
limit for the main thread is 8MB on mac osx but 512KB for other threads.

rdar://47787344
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test and merge

#else
for (auto &thread: threads) {
thread.thread->join();
delete thread.thread;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to make thread a smart pointer to avoid this?

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test OS X platform and merge

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test OS X platform

@aschwaighofer aschwaighofer merged commit 34577c6 into swiftlang:swift-5.1-branch Mar 8, 2019
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

Successfully merging this pull request may close these issues.

2 participants