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

Add a way to handle uninitialized memory within portable-atomic #116

Open
notgull opened this issue Aug 13, 2023 · 2 comments
Open

Add a way to handle uninitialized memory within portable-atomic #116

notgull opened this issue Aug 13, 2023 · 2 comments
Labels
C-enhancement Category: A new feature or an improvement for an existing one

Comments

@notgull
Copy link
Sponsor Contributor

notgull commented Aug 13, 2023

It would be nice to be able to handle uninitialized memory, like with the atomic-maybe-uninit crate. I'm not familiar enough with atomic instructions to know how this could be done.

@taiki-e
Copy link
Owner

taiki-e commented Aug 14, 2023

Once rust-lang/rust#114790 or an alternative is merged, it would be easy to extend the inline assemblies used in portable-atomic to work with MaybeUninit as well. Once that happens, I may start to consider merging atomic-maybe-uninit into portable-atomic.

@taiki-e taiki-e added C-enhancement Category: A new feature or an improvement for an existing one S-blocked Status: Blocked on something else labels Aug 14, 2023
@notgull
Copy link
Sponsor Contributor Author

notgull commented Apr 23, 2024

It looks like the PR mentioned above has been merged into Rust v1.74.

@taiki-e taiki-e removed the S-blocked Status: Blocked on something else label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: A new feature or an improvement for an existing one
Projects
None yet
Development

No branches or pull requests

2 participants