Skip to content

[5.1][SDK] Modernize array initialization pattern in ModelIO overlay #25401

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 13, 2019

Conversation

lorentey
Copy link
Member

(Cherry-picked from #25364)

We have nondeterministic test failures indicating a memory safety issue in ModelIO’s overlay. This switches the overlay’s property implementations to use the new Array(unsafeUninitializedCount:,initializedWith:) initializer rather than the potentially unreliable &values[0] pattern.

rdar://problem/50449570

We have nondeterministic test failures indicating a memory safety issue in ModelIO’s overlay. This switches the overlay’s property implementations to use the new `Array(unsafeUninitializedCount:,initializedWith:)` initializer rather than the potentially unreliable `&values[0]` pattern.

rdar://problem/50449570
(cherry picked from commit b4998fb)
@lorentey
Copy link
Member Author

@swift-ci test

@lorentey
Copy link
Member Author

@shahmishal @benlangmuir This is ready to merge, I think

@shahmishal shahmishal merged commit c056606 into swiftlang:swift-5.1-branch Jun 13, 2019
@lorentey lorentey deleted the ModelIO-arrays-5.1 branch June 13, 2019 01:13
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