File Details
Data_Anchor-forge-1.20.1-1.0.0.21.jar
- R
- Dec 27, 2025
- 114.79 KB
- 12
- 1.20.1
- Forge
File Name
Data_Anchor-forge-1.20.1-1.0.0.21.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
Fixed a memory leak caused by circular references between ImposterProtoChunk instances and their TrackedDataContainer objects. ImposterProtoChunk is a temporary wrapper used during world generation that was being retained indefinitely due to the container's anonymous inner class holding a strong reference back to the chunk.
Changelog
Fixed
- Memory leak preventing garbage collection of
ImposterProtoChunkand associatedLevelChunkinstances - Heap dumps previously showed ~15,000+ retained
ImposterProtoChunkinstances (should be near zero)
Changed
ChunkAccessMixinnow skipsTrackedDataContainercreation forImposterProtoChunkinstances- Container delegation methods are now null-safe for chunks without attached containers
Technical Details
- File modified:
ChunkAccessMixin.java - Root cause: Anonymous inner class in
TrackedDataContainer.makeBasicContainer()captured chunk reference, creating circular reference chain - Fix: Early return in constructor injection when
this instanceof ImposterProtoChunk