Skip to content

[5.3][stdlib] Make _convertConstStringToUTF8PointerArgument transparent #32929

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

airspeedswift
Copy link
Member

This function was not marked as inlineable, which prevents specialization and caused code using it to add resilient caches for the _Pointer protocol into the DATA segment. The unspecialized code is also less efficient.

Cherry-pick of #32915
Scope of Issue: This is causing unspecialized code on pointer manipulation, which dirties memory and bloats code size.
Origination: This has been like this since the standard library became resilient
Risk: Extremely low, this is just exposing trivial code to the inline
Test: use is covered by several existing tests
Reviewed by: @lorentey
Resolves: rdar://65640613

@airspeedswift airspeedswift requested a review from a team as a code owner July 16, 2020 18:36
@airspeedswift
Copy link
Member Author

@swift-ci please test

@airspeedswift airspeedswift changed the title Make _convertConstStringToUTF8PointerArgument transparent [5.3][stdlib] Make _convertConstStringToUTF8PointerArgument transparent Jul 16, 2020
@airspeedswift
Copy link
Member Author

@swift-ci nominate

@airspeedswift airspeedswift merged commit 8f0ea35 into swiftlang:release/5.3 Jul 17, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants