pepijnve opened a new pull request, #766:
URL: https://github.com/apache/arrow-java/pull/766

   ## What's Changed
   
   This PR removes the direct and indirect calls to `BaseStruct#close` from 
`org.apache.arrow.c.Data`. By not eagerly closing/freeing these objects callers 
can reuse instances multiple times.
   
   **This contains breaking changes.**: a quick check in, for instance, 
`org.apache.arrow.c.StreamTest` shows that a lot of existing code is already 
written using try-with-resources. This change will not have any impact there. 
Code that does not use a try-with-resources or try-finally-close pattern and 
instead counts on `Data` to call `close` will report memory leaks after this 
change.
   
   Closes #765.
   


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to