Skip to content

Disable stack protection by default #63661

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
Feb 15, 2023

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Feb 14, 2023

Background: Stack protection was added to the main branch a few months ago and has not yet been in any shipping version of Swift.

We expect stack checks to impair performance somewhat, but we've recently found some cases where the stack checks were being inserted in places where they don't actually do any good. These led to unnecessary performance regressions, so we're disabling them in the 5.8 branch.

We'll leave it enabled in main while we work to avoid the extra unnecessary stack checks.

Resolves rdar://105231457

@eeckstein eeckstein requested a review from a team as a code owner February 14, 2023 20:33
@tbkka tbkka requested a review from stephentyrone February 14, 2023 22:04
@tbkka
Copy link
Contributor

tbkka commented Feb 14, 2023

@swift-ci Please test

@tbkka
Copy link
Contributor

tbkka commented Feb 15, 2023

@swift-ci Please test macOS platform

@tbkka
Copy link
Contributor

tbkka commented Feb 15, 2023

First macOS test attempt failed with "cannot connect to server", so I started a new test.

@tbkka
Copy link
Contributor

tbkka commented Feb 15, 2023

@swift-ci Please test macOS

@etcwilde
Copy link
Member

Can we please get more context in the PR description? This looks bad out of context.

@tbkka tbkka merged commit 222ed4c into swiftlang:release/5.8 Feb 15, 2023
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.

3 participants