diff options
author | Aikar <aikar@aikar.co> | 2016-03-31 19:47:11 -0400 |
---|---|---|
committer | Aikar <aikar@aikar.co> | 2016-03-31 19:47:11 -0400 |
commit | f92e01ba5cf46c123d0cd38b29321c78706257e0 (patch) | |
tree | c66d6515e9aaac5fd3992df9429154324a8b7694 /nms-patches/PathfinderAbstract.patch | |
parent | 6247aa00cc50cff563dc17811db1c3f4a9f1487c (diff) | |
download | craftbukkit-f92e01ba5cf46c123d0cd38b29321c78706257e0.tar craftbukkit-f92e01ba5cf46c123d0cd38b29321c78706257e0.tar.gz craftbukkit-f92e01ba5cf46c123d0cd38b29321c78706257e0.tar.lz craftbukkit-f92e01ba5cf46c123d0cd38b29321c78706257e0.tar.xz craftbukkit-f92e01ba5cf46c123d0cd38b29321c78706257e0.zip |
MC-100382: Fix Pathfinding Memory Leak
https://bugs.mojang.com/browse/MC-100382
A reference to a ChunkCache is never cleaned up after doing a pathfind operation,
resulting in leaking chunks. The leaked chunks then hold references to other
entities that may also be leaking ChunkCache's, creating a cascading problem.
Diffstat (limited to 'nms-patches/PathfinderAbstract.patch')
-rw-r--r-- | nms-patches/PathfinderAbstract.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/PathfinderAbstract.patch b/nms-patches/PathfinderAbstract.patch new file mode 100644 index 00000000..2748b173 --- /dev/null +++ b/nms-patches/PathfinderAbstract.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/server/PathfinderAbstract.java ++++ b/net/minecraft/server/PathfinderAbstract.java +@@ -23,7 +23,7 @@ + this.f = MathHelper.d(entityinsentient.width + 1.0F); + } + +- public void a() {} ++ public void a() { this.a = (IBlockAccess) null; } // CraftBukkit - don't leak Chunk Cache + + protected PathPoint a(int i, int j, int k) { + int l = PathPoint.b(i, j, k); |