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

Usage of references is in conflict with use for MMIO #10

Open
RalfJung opened this issue May 26, 2019 · 0 comments
Open

Usage of references is in conflict with use for MMIO #10

RalfJung opened this issue May 26, 2019 · 0 comments

Comments

@RalfJung
Copy link

Rust considers all references dereferencable and hence adds the dereferencable attribute. This allows the compiler to insert spurious reads from that reference. There is currently no way around that.

Some more discussions for context:

Unfortunately, this means the approach implemented by this crate is currently flawed: the compiler may insert spurious reads from an &RO<T> (or any of the other types, including WO).

The UCG thread is probably the best place to discuss possible solutions to this problem.

(I am not sure if this issue should be reported against this crate or vcell.)

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