Skip to content

[4.2][string] Only bridge tagged NSStrings to small string form. #16322

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
May 4, 2018

Conversation

milseman
Copy link
Member

@milseman milseman commented May 3, 2018

Non-tagged NSStrings carry identity separate from their
value. Continue to bridge them lazily, even if they could fit in small
form, to respect this and avoid potential information loss.

4.2 cherry pick of #16320

@milseman
Copy link
Member Author

milseman commented May 3, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented May 3, 2018

Build failed
Swift Test OS X Platform
Git Sha - a9fe583252b3f4f39dd761004aff20590b910d7c

Non-tagged NSStrings carry identity separate from their
value. Continue to bridge them lazily, even if they could fit in small
form, to respect this and avoid potential information loss.

Temporarily disable invariant that all natives strings that could be
small, are.
@milseman milseman force-pushed the 4_2_identity_crisis branch from a9fe583 to 7340f11 Compare May 3, 2018 17:46
@milseman
Copy link
Member Author

milseman commented May 3, 2018

@swift-ci please test

2 similar comments
@milseman
Copy link
Member Author

milseman commented May 3, 2018

@swift-ci please test

@milseman
Copy link
Member Author

milseman commented May 3, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented May 3, 2018

Build failed
Swift Test OS X Platform
Git Sha - a9fe583252b3f4f39dd761004aff20590b910d7c

@swift-ci
Copy link
Contributor

swift-ci commented May 3, 2018

Build failed
Swift Test Linux Platform
Git Sha - a9fe583252b3f4f39dd761004aff20590b910d7c

@milseman milseman merged commit 46518b3 into swiftlang:swift-4.2-branch May 4, 2018
@milseman milseman deleted the 4_2_identity_crisis branch May 4, 2018 03:15
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