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

Ensure background translation threads exited before disposing JIT #4874

Merged
merged 1 commit into from May 11, 2023

Conversation

gdkchan
Copy link
Member

@gdkchan gdkchan commented May 10, 2023

This fixes a potential issue that could happen if all guest threads exit, but there is still a background translation in flight on one of the background translation threads. In this situation, it would crash because some collections have already been disposed. This seems extremely rare since I never got it myself, but got a report of it happening from @AcK77.

@gdkchan gdkchan added cpu Related to ARMeilleure fix Fix something labels May 10, 2023
@gdkchan gdkchan requested a review from marysaka May 10, 2023 00:46
Copy link
Member

@AcK77 AcK77 left a comment

Choose a reason for hiding this comment

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

After some tests my issue seems to be fixed! Thanks!

@AcK77 AcK77 requested review from riperiperi and TSRBerry May 10, 2023 01:34
Copy link
Member

@riperiperi riperiperi left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

@gdkchan gdkchan merged commit ba71141 into Ryujinx:master May 11, 2023
6 checks passed
@gdkchan gdkchan deleted the bgt-dispose branch May 11, 2023 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpu Related to ARMeilleure fix Fix something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants