Skip to content

Re-add the optional overload for atomic ptr swaps #3121

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 22, 2016

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jun 22, 2016

What's in this pull request?

@gribozavr Noticed the optional overload for _stdlib_atomicCompareExchangeStrongPtr was missing. Let's gyb it back in.

Resolved bug number: (SR-)


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@gribozavr
Copy link
Contributor

Could you gyb a few tests in test/1_stdlib/Runtime.swift? (You'd need to rename the file to gyb and adjust the RUN line to use gyb.)

@CodaFi CodaFi changed the title [NFC] Re-add the optional overload for atomic ptr swaps Re-add the optional overload for atomic ptr swaps Jun 22, 2016
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 22, 2016

@gribozavr Sorry that took a bit. Had to re-run stdlib-gen on my end.

var origP3 = IntPtr(bitPattern: 0x30303030)!
var origP1 : IntPtr${optionality} = IntPtr(bitPattern: 0x10101010)!
var origP2 : IntPtr${optionality} = IntPtr(bitPattern: 0x20202020)!
var origP3 : IntPtr${optionality} = IntPtr(bitPattern: 0x30303030)!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should not be a space before the colon.

@gribozavr
Copy link
Contributor

@CodaFi LGTM, please merge when you are ready.

@swift-ci Please test

@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 22, 2016

@gribozavr Mind running CI again?

@gribozavr
Copy link
Contributor

@swift-ci Please test and merge

@swift-ci swift-ci merged commit ba19162 into swiftlang:master Jun 22, 2016
@CodaFi CodaFi deleted the up-and-atom branch June 22, 2016 04:47
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.

3 participants