alamb commented on code in PR #50408: URL: https://github.com/apache/arrow/pull/50408#discussion_r3540057960
########## docs/source/cpp/security.rst: ########## @@ -120,6 +120,22 @@ variants, but these typically fall into two categories: arguments (this is typical of the :ref:`array builders <cpp-api-array-builders>` and :ref:`buffer builders <cpp-api-buffer-builders>`). +Controlling and restricting memory allocation +--------------------------------------------- + +By construction, many Arrow C++ APIs can allocate large amounts of memory, depending +on their input parameters. Arrow C++ allows customizing the memory allocator for +such large data requests through the :ref:`MemoryPool <cpp_memory_pool>` interface. + +You can therefore implement a MemoryPool class enforcing the restrictions +of your choise (for example to limit the total number of allocated bytes), and pass Review Comment: ```suggestion of your choice (for example to limit the total number of allocated bytes), and pass ``` -- 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]
