zeroshade commented on PR #14878:
URL: https://github.com/apache/arrow/pull/14878#issuecomment-1347314451

   Currently, you can compile with `-tags assert` and it will turn on a bunch 
of debug assertions which will panic or throw errors under certain conditions 
(such as calling `Release` too many times) and it's encouraged for users to 
utilize the `CheckedAllocator` for their testing to ensure they call release 
appropriately.
   
   I could potentially look at adding finalizers to the buffers created by 
`NewResizableBuffer` though with a debug assertion to print a message if it 
wasn't released properly. I'll add an issue to look into doing that. Does that 
all make sense? I mostly don't want to blanket add the `SetFinalizer` since 
that could increase GC time and most users are probably just using the default 
allocator, so I'd prefer to keep it behind a build tag.


-- 
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]

Reply via email to