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

multiboot2: create DSTs: hopefully better memory fix #158

Merged
merged 1 commit into from Jun 23, 2023
Merged

Conversation

phip1611
Copy link
Collaborator

There where more memory issues (according to miri) in the boxed_dst_tag function. I tried many things but I came to the conclusion:

  • creating DSTs that are packed and satisfying miri is a pain

Making every struct packed would help to satisfy miri with allocations/deallocations but using packed structs in Rust is a pain for itself. Using packed DSTs is a total meltdown...

So I think, using my own Boxed-like wrapper is the best solution we can have so far. I'm 99% certain that there are no memory issues at runtime and that only miri complains under certain cirumstances.

@phip1611 phip1611 force-pushed the fixes2 branch 2 times, most recently from 70a5c95 to eb71d88 Compare June 23, 2023 11:23
@phip1611 phip1611 merged commit 2161c41 into main Jun 23, 2023
8 checks passed
@phip1611 phip1611 deleted the fixes2 branch June 23, 2023 11:24
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.

None yet

1 participant