davidnich commented on issue #55623: URL: https://github.com/apache/arrow/issues/55623#issuecomment-6918525626
The same pattern exists in two sibling functions in `cpp/src/arrow/ipc/writer.cc`, and the PR fixes them too: - `GetTensorMessage(tensor, pool)` uses `pool` only to make a non-contiguous tensor contiguous; the tensor message's flatbuffer is allocated from the default pool. - `GetSparseTensorPayload(sparse_tensor, pool, out)` (and so `GetSparseTensorMessage(sparse_tensor, pool)`) never uses `pool`. No other IPC function that takes a `MemoryPool*` allocates from the default pool. -- 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]
