Skip to content

[Runtime] Refactor HeapObject override checks to use a macro. #27542

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
Oct 10, 2019

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Oct 4, 2019

This gives us a one-stop shop for making changes to the override mechanism.

rdar://problem/54752086

@mikeash
Copy link
Contributor Author

mikeash commented Oct 4, 2019

@swift-ci please test and merge

@mikeash
Copy link
Contributor Author

mikeash commented Oct 4, 2019

@swift-ci please test linux platform

@swift-ci
Copy link
Contributor

swift-ci commented Oct 4, 2019

Build failed
Swift Test Linux Platform
Git Sha - 85e1bd9b91007690384de2a6953f9b3435160b32

// to the call. This checks for an override in the function pointer. If an
// override is present, it calls that override. Otherwise it directly calls
// the default implementation. This allows the compiler to inline the default
// implementation and avoid the penformance penalty of indirecting through
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: "penformance"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Argh. You're not even the first one to point this out. I'm just bad at fixing it.

This gives us a one-stop shop for making changes to the override mechanism.

rdar://problem/54752086
@mikeash mikeash force-pushed the retain-release-refactor branch from 85e1bd9 to 922b71f Compare October 4, 2019 20:43
@mikeash
Copy link
Contributor Author

mikeash commented Oct 4, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Oct 4, 2019

Build failed
Swift Test OS X Platform
Git Sha - 85e1bd9b91007690384de2a6953f9b3435160b32

@swift-ci
Copy link
Contributor

swift-ci commented Oct 4, 2019

Build failed
Swift Test Linux Platform
Git Sha - 85e1bd9b91007690384de2a6953f9b3435160b32

@mikeash
Copy link
Contributor Author

mikeash commented Oct 10, 2019

@swift-ci please test linux platform

@mikeash mikeash merged commit 1cb3d7c into swiftlang:master Oct 10, 2019
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