Skip to content

[4.0] Remove overlapping exclusive accesses in encoders #10821

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

itaiferber
Copy link
Contributor

What's in this pull request?
Cherry-picks #10819 to swift-4.0-branch.

Explanation: {JSON,Plist}{Encoder,Decoder} had overlapping accesses which were supposed to be mutually exclusive in their with(pushedKey:) methods. This Removes those methods and the overlapping accesses.
Scope: Affects anyone trying to use these classes as we're not invoking undefined behavior.
Radar: rdar://problem/33146339
Risk: Low
Testing: All existing unit test pass; warnings for this no longer produced.

{JSON,Plist}{Encoder,Decoder} had overlapping accesses which were supposed to be mutually exclusive in their `with(pushedKey:)` methods.

Removes those methods and the overlapping accesses.
@itaiferber
Copy link
Contributor Author

@swift-ci Please test macOS

@itaiferber
Copy link
Contributor Author

@swift-ci Please smoke test Linux

@itaiferber
Copy link
Contributor Author

@swift-ci Please test Linux

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 64d91be
Test requested by - @itaiferber

@itaiferber
Copy link
Contributor Author

@swift-ci Please test Linux

@itaiferber itaiferber merged commit 44e88af into swiftlang:swift-4.0-branch Jul 10, 2017
@itaiferber itaiferber deleted the 4.0-encoders-eliminate-overlapping-exclusive-accesses branch July 10, 2017 16:47
devincoughlin added a commit to devincoughlin/swift-corelibs-foundation that referenced this pull request Apr 13, 2018
Bring in changes from the Swift overlays to avoid exclusivity warnings. These
changes come from: swiftlang/swift#10821
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