Kontinuation commented on issue #884: URL: https://github.com/apache/datafusion-comet/issues/884#issuecomment-2318491930
> > I'm afraid that's not the case. To my understanding, the release callback frees everything except the base structure. Please refer to the [reference implementation of the release handler](https://arrow.apache.org/docs/format/CDataInterface.html#release-callback-semantics-for-producers) in the specification. > > If you are referring the JVM instances of `ArrowSchema` and `ArrowArray`. They are not referred after `exportBatch`. How do they keep in JVM? `ArrowSchema` and `ArrowArray` hold references to native memory. Garbage collecting these 2 objects does not release the native memory. The native memory has to be deallocated manually by calling the `close` method. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
