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

Remove mfio_assume_linear_types #2

Open
h33p opened this issue Nov 28, 2023 · 0 comments
Open

Remove mfio_assume_linear_types #2

h33p opened this issue Nov 28, 2023 · 0 comments

Comments

@h33p
Copy link
Member

h33p commented Nov 28, 2023

Pinned objects in rust include a drop guarantee, meaning, we are overly conservative with the use of stack allocated buffers.

In 95238ce, we resolved (as best as currently possible) the safety problems of sharing pinned data across threads.

The next step would be to eliminate mfio_assume_linear_types config switch, update documentation, and ensure that we move the Future implementation on &'a Packet<Perms> to something where pinning must be done explicitly, ensuring !Unpin.

The !Unpin bit is the reason why we are delaying this work until 0.2.x series.

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

No branches or pull requests

1 participant