is `newSize` guaranteed to be a power of 2?