using _ensureCapacity in ComponentManager