REBASEME: We can't use the_capacity without holding a lock.