Fix circular array capacity allocation
am: fa0f278ff6

* commit 'fa0f278ff6c3ac316e12489a3cf0146766c168ce':
  Fix circular array capacity allocation