Bukkit/CraftBukkit — pull request #784 by nallar (2012-05-30 11:01:47+00:00)
Title: Remove unnecessary AxisAlignedBBs from pool. (Fixes BUKKIT-1682)

This shrinks the AxisAlignedBB pool if there are more entries in it than were used in the last tick, removing a maximum of 1 entry per tick. This prevents a pseudo-memory-leak if the number of entities spikes, as removing entities previously would not reduce pool size.

Associated JIRA ticket:

https://bukkit.atlassian.net/browse/BUKKIT-1682