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

chore: Run FFI patterns under Miri #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: Run FFI patterns under Miri #140

wants to merge 1 commit into from

Conversation

apljungquist
Copy link
Contributor

The goal is to increase my confidence that the code in unsafe crates is sound.

The new tests are included during normal test runs because to make
sure they are correct also outside of miri; I accidentally introduced
a concurrency bug by factoring out the code that uses a static atomic
int and storing 0 to reset the count between runs. But outside of miri
the tests run in parallel and this was insufficient.

I have tested a variety of ways to make the code easier to read. Most
failed under miri, but I plan to introduce the one that works in a
later commit.
@apljungquist apljungquist requested a review from a team as a code owner November 27, 2024 16:13
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.

1 participant