Skip to content
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

reduce scope of unsafe xsave code to where know it's supported #39

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

martinvonz
Copy link
Contributor

No description provided.

This commit moves the code that uses xsave into its own function, so
the scope of the `#[target_feature(...)]` covers only code that's run
after checking that the processor supports xsave.

Found in code review, not in practice.
@zhangsoledad zhangsoledad added this pull request to the merge queue Nov 22, 2023
Merged via the queue into nervosnetwork:master with commit 4e8723e Nov 22, 2023
5 checks passed
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