pitrou commented on issue #39377:
URL: https://github.com/apache/arrow/issues/39377#issuecomment-2022482339

   > You're right. The implementation is not a `realloc`, but a new allocation. 
https://github.com/apache/arrow/blob/main/cpp/src/arrow/memory_pool.cc#L353
   
   Late reply to this, but you were looking at the system memory pool. Look for 
example at the mimalloc memory pool, and you'll see that it reallocates:
   
https://github.com/apache/arrow/blob/24feab091ab5a05b1cec234f51bd0223e2c41487/cpp/src/arrow/memory_pool.cc#L419-L420
   
   Same for the jemalloc memory pool here:
   
https://github.com/apache/arrow/blob/24feab091ab5a05b1cec234f51bd0223e2c41487/cpp/src/arrow/memory_pool_jemalloc.cc#L111-L113


-- 
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]

Reply via email to