lidavidm commented on issue #2526: URL: https://github.com/apache/arrow-adbc/issues/2526#issuecomment-2663001423
> How does Go support buffers sent over FFI / from IPC, which require using a release callback / ref count? Sorry, I was a bit imprecise with that - the allocator interface in arrow-go uses `[]byte` but the rest of the library handles it through a `Buffer` which associates a `[]byte` and an allocator object and has an associated reference count. For the problem at hand, Matt and I were talking about adjusting `Buffer` to handle this. My point was more that we can't get away with _just_ adjusting the allocator implementation. (The native-Go allocator actually does the overallocation trick, but there's no problem there because it's using the garbage collector. We can't use that allocator for ADBC FFI because Go does not like it when Go-allocated pointers escape Go code except under very specific circumstances.) -- 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]
