Skip to content

[Test] Reduce stack usage in async_taskgroup_discarding_neverConsumingTasks.swift. #81994

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

Merged
merged 1 commit into from
Jun 10, 2025

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Jun 4, 2025

With optimizations disabled, the InlineArray initializer uses 512kB of stack space. This can overflow the stack depending on exactly how things are set up. Reduce stack usage by manually allocating memory for the array and initializing it as a pointer to Int.

rdar://152420308

…gTasks.swift.

With optimizations disabled, the InlineArray initializer uses 512kB of stack space. This can overflow the stack depending on exactly how things are set up. Reduce stack usage by manually allocating memory for the array and initializing it as a pointer to Int.

rdar://152420308
@mikeash mikeash requested a review from ktoso as a code owner June 4, 2025 19:08
@mikeash
Copy link
Contributor Author

mikeash commented Jun 4, 2025

@swift-ci please test

@mikeash
Copy link
Contributor Author

mikeash commented Jun 6, 2025

@swift-ci please test macOS platform

@mikeash mikeash merged commit 1d83fe3 into swiftlang:main Jun 10, 2025
5 checks passed
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.

1 participant