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 random mixin members not getting remapped due to concurrency issues #115

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

Yeregorix
Copy link
Contributor

When remapping a jar with many mixins (sponge jar) I discovered that some members were not remapped properly. Which members were not remapped was fully random and changed each time I re execute the task.

After some debugging I found that multiple threads are writing to the tasks list in MixinExtension but this list is not thread-safe. I tried replacing it with a thread-safe collection and it fixed my problem. Here is the fix.

Copy link
Member

@modmuss50 modmuss50 left a comment

Choose a reason for hiding this comment

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

Nice spot, Thanks for trying out this mixin stuff 👍 Its not something we use much atm.

@modmuss50 modmuss50 merged commit b0b1aa1 into FabricMC:master Nov 3, 2023
3 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.

3 participants