Data_Anchor-forge-1.20.1-1.0.0.21.jar
Curse Maven Snippet
What's new
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
This mod has no additional files

