Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
There are some situations (arrow::ipc::SerializeRecordBatch where we pass a MemoryPool* solely to call AllocateBuffer using it. This is not as flexible as it could be, since there are situation where we may wish to allocate from shared memory instead.
So instead:
Func(..., BufferAllocator* allocator, ...) { ... std::shared_ptr<Buffer> buffer; RETURN_NOT_OK(allocator->Allocate(nbytes, &buffer)); ... }
Attachments
Issue Links
- is superceded by
-
ARROW-2447 [C++] Create a device abstraction
- Resolved