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

Fix for IoRing shutdown hang bug. #144

Merged
merged 4 commits into from
Mar 15, 2024
Merged

Conversation

tonyastolfi
Copy link
Collaborator

Fixes #143

Changed the EnqueueManyHandlers test to run repeatedly in a loop 5000 times. In interactive testing, this triggers the bug about 80% of the time, so I think its a good compromise between catching regressions and keeping the tests fast.

Recommend starting with the comment in the newly added IoRingImpl::wake_all() function.

@tonyastolfi tonyastolfi self-assigned this Mar 13, 2024
Copy link
Collaborator

@gabrielbornstein gabrielbornstein left a comment

Choose a reason for hiding this comment

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

Really great explanatory comments. Overall, the code is easier to read with these changes.

src/llfs/ioring_impl.cpp Show resolved Hide resolved
src/llfs/ioring_impl.cpp Show resolved Hide resolved
@tonyastolfi tonyastolfi merged commit 4a642e7 into mathworks:main Mar 15, 2024
4 checks passed
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.

IoRing::run() hang when called from multiple threads (sporadic)
2 participants