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

Port to event-listener v5.0.0 #74

Merged
merged 8 commits into from Feb 12, 2024
Merged

Port to event-listener v5.0.0 #74

merged 8 commits into from Feb 12, 2024

Conversation

notgull
Copy link
Member

@notgull notgull commented Dec 26, 2023

@notgull notgull marked this pull request as draft December 26, 2023 16:08
@notgull
Copy link
Member Author

notgull commented Jan 6, 2024

MIRI deadlock looks like a false positive to me, but let me investigate it first.

cc smol-rs/event-listener#105

Signed-off-by: John Nunley <dev@notgull.net>
Signed-off-by: John Nunley <dev@notgull.net>
Signed-off-by: John Nunley <dev@notgull.net>
- Miri was catching what I now know to be a legitimate leak, so I've
  fixed that.
- The deadlock doesn't appear to be legitimate; replacing the futures
  with their blocking equivalents passes. I've marked these tests as
  skipped on MIRI for now.

Signed-off-by: John Nunley <dev@notgull.net>
@Jules-Bertholet
Copy link
Collaborator

Jules-Bertholet commented Jan 31, 2024

I've noticed that the choice of -Zmiri-seed seed can affect whether some of the tests pass or deadlock, so it's important to try several. (Don't have time to look further for now)

@notgull notgull marked this pull request as ready for review February 7, 2024 03:11
Signed-off-by: John Nunley <dev@notgull.net>
@notgull notgull marked this pull request as draft February 7, 2024 03:17
src/rwlock/futures.rs Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
src/rwlock/raw.rs Show resolved Hide resolved
Signed-off-by: John Nunley <dev@notgull.net>
Signed-off-by: John Nunley <dev@notgull.net>
@notgull notgull marked this pull request as ready for review February 10, 2024 18:01
Signed-off-by: John Nunley <dev@notgull.net>
Copy link
Member

@zeenix zeenix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good otherwise.

tests/rwlock.rs Show resolved Hide resolved
@notgull notgull merged commit ff4c96f into master Feb 12, 2024
9 checks passed
@notgull notgull deleted the notgull/new-evl branch February 12, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants