metsw24-max commented on PR #49883: URL: https://github.com/apache/arrow/pull/49883#issuecomment-4403485859
I added a single helper in `memory_pool.cc`, and now call it from: - PoolBuffer::Reserve - PoolBuffer::Resize - AllocateResizableBuffer Then I removed the duplicated “capacity too large” checks from BufferBuilder and TypedBufferBuilder methods, since they now flow through the centralized checks. So this should cover more use cases and reduce the chance of missing checks in future call sites -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
