Previously the update() method would iterate over its capacity, which may contain uninitialized memory or already removed elements.
Previously the update() method would iterate over its capacity, which may contain uninitialized memory or already removed elements.