Skip to content

Future-proof the ARM64 ABI by not reserving the entire top byte #21453

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
Dec 20, 2018

Conversation

rjmccall
Copy link
Contributor

@rjmccall rjmccall commented Dec 20, 2018

Targets that want to use armv8.5a memory tagging will need this. Hopefully nobody comes up with a brilliant reason they need to use anything else.

I considered whether to push this to other 64-bit targets and decided that it was pretty architecture-specific. If somehow x86-64 adds a similar feature, there's no reason to think it'll look exactly the same down to the range of bits it claims. (Intel is probably also less likely to be willing to sacrifice address space, whereas ARM already made that decision due to TBI.)

This is a re-submission of #21000 now that String is no longer assuming that it can use the entire top 8 bits (#21310). I've also added a test that the behavior changes on ARM64.

Targets that want to use armv8.5a memory tagging will need this.
Hopefully nobody comes up with a brilliant reason they need to use
anything else.
@rjmccall
Copy link
Contributor Author

@swift-ci Please test.

@rjmccall rjmccall requested a review from jckarter December 20, 2018 05:31
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 6936ce7

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 6936ce7

@rjmccall
Copy link
Contributor Author

@swift-ci Please clean test.

@rjmccall
Copy link
Contributor Author

Both test-suite failures were LLDB failures involving String. One of them was enum-related, but... I'm hoping that it was just a stale environment.

Copy link
Contributor

@jckarter jckarter left a comment

Choose a reason for hiding this comment

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

Looks good.

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 6936ce7

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 6936ce7

@rjmccall
Copy link
Contributor Author

@swift-ci Please test.

@rjmccall
Copy link
Contributor Author

Apparently my latest test run might have just not included apple/swift-lldb#1168.

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