Skip to content

Fix IntCache memory leak#140

Merged
Alexdoru merged 1 commit into
masterfrom
alex/fix-int-cache-leak
May 12, 2026
Merged

Fix IntCache memory leak#140
Alexdoru merged 1 commit into
masterfrom
alex/fix-int-cache-leak

Conversation

@Alexdoru

@Alexdoru Alexdoru commented May 7, 2026

Copy link
Copy Markdown
Member

should fix : GTNewHorizons/GT-New-Horizons-Modpack#22708

This mod didn't call IntCache.resetIntCache(); in certain generation methods which causes the intcache to grow bigger and bigger and bigger until your game OOM.
This can be easily verified by using this PR GTNewHorizons/Hodgepodge#868

and then you go back and forth in the twilight portal and every time you cross the portal the intcache size get bigger.

@Alexdoru
Alexdoru merged commit 3bc4254 into master May 12, 2026
1 check passed
@Alexdoru
Alexdoru deleted the alex/fix-int-cache-leak branch May 12, 2026 14:26
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.

Server Crash after idle/chunkload for a day - java.lang.OutOfMemoryError: Java heap space

2 participants