Skip to content

[Stdlib] Make alignedStorageForEmptyVaLists bigger. #79774

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
Mar 12, 2025

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Mar 4, 2025

Expand alignedStorageForEmptyVaLists to eight Doubles. This produces more predictable output for code that calls a variadic function without parameters where the function still expects them, such as passing an arbitary string to a string formatting function. It's still unsound, but this makes it more predictable.

rdar://145083971

@mikeash mikeash requested a review from a team as a code owner March 4, 2025 22:34
@tbkka
Copy link
Contributor

tbkka commented Mar 10, 2025

@swift-ci Please test

Expand alignedStorageForEmptyVaLists to eight Doubles. This produces more predictable output for code that calls a variadic function without parameters where the function still expects them, such as passing an arbitary string to a string formatting function. It's still unsound, but this makes it more predictable.

rdar://145083971
@mikeash mikeash force-pushed the bigger-empty-va-list-storage branch from a028d26 to 70e1931 Compare March 11, 2025 13:29
@mikeash
Copy link
Contributor Author

mikeash commented Mar 11, 2025

@swift-ci please test

@mikeash mikeash enabled auto-merge March 11, 2025 13:29
@mikeash
Copy link
Contributor Author

mikeash commented Mar 11, 2025

Unrelated test failure in lang/swift/enums/decoding_error/TestSwiftDecodingErrorEnum.py, this test appears to be flaky.

@mikeash
Copy link
Contributor Author

mikeash commented Mar 11, 2025

@swift-ci please smoke test macos platform

@mikeash
Copy link
Contributor Author

mikeash commented Mar 11, 2025

@swift-ci please smoke test macOS platform

@mikeash mikeash merged commit c7922b2 into swiftlang:main Mar 12, 2025
4 of 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.

2 participants