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

Use a WeakHashMap in WorldAttached to prevent memory leaks #4065

Closed
wants to merge 1 commit into from
Closed

Use a WeakHashMap in WorldAttached to prevent memory leaks #4065

wants to merge 1 commit into from

Conversation

Ampflower
Copy link
Contributor

Quick backport of the WeakHashMap patch in Fabricators-of-Create#637 to fix Fabricators-of-Create#635, which maybe useful for if an event is somehow missed or is dealing with a misbehaving mod. I know that this version isn't subject to the same ClientLevel not being cleared bug, but I think this patch could be of value for preventing desync of branches and preventing future bugs.

@simibubi
Copy link
Collaborator

simibubi commented Dec 7, 2022

Hi, thanks for the PR.
Is this issue only relevant on version 1.19? Usually submitted changes are targeting our default branch

@Ampflower
Copy link
Contributor Author

It'll likely be relevant to all versions that uses the same implementation. I can target the default branch if you'd like.

@simibubi
Copy link
Collaborator

simibubi commented Dec 8, 2022

Yep, that would be nice

@Ampflower
Copy link
Contributor Author

As I can't retarget the branch from this PR, I've recreated this PR for the 1.18 branch at #4108.

No changes from this commit aside from being rebased, still compiles and runs as expected.

@Ampflower Ampflower closed this Dec 8, 2022
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.

2 participants