singhpratech opened a new pull request, #1302: URL: https://github.com/apache/arrow-go/pull/1302
### Rationale for this change Nothing in the `memory` package said what alignment an allocator guarantees, or which allocator to use for buffers that C will keep after the cgo call. The `cdata` export comment named only the `CgoArrowAllocator`, which needs the Arrow C++ library, while `mallocator` covers the same need without it. Discussed in #1297. ### What changes are included in this PR? Two sections in the `memory` package comment: the 64-byte alignment `GoAllocator` and `mallocator.NewMallocator` provide and `NewMallocatorWithAlignment` for anything larger; and the cgo pointer rule with the two allocators that return C memory. Doc comments on `GoAllocator` and `NewGoAllocator`. The `ExportArrowRecordBatch` comment now names `mallocator.Mallocator` alongside `CgoArrowAllocator` and points at the package doc. ### Are these changes tested? Documentation only; `go vet` and `go build ./...` pass and `go doc ./arrow/memory` renders the new sections. ### Are there any user-facing changes? Documentation only. Closes #1297. -- 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]
