CurtHagenlocher commented on PR #523: URL: https://github.com/apache/arrow-dotnet/pull/523#issuecomment-7381448067
I don't know why this wasn't public to begin with because it predates my time working on the project. A quick search through history suggests that it wasn't a deliberate decision; that this was just an implementation detail of some other piece that was built and there wasn't any consideration for making it public. In principle, I think there should be a way to do this. In fact, I think there's at least one project where I do use this API through Reflection. But I'm also worried that it's an easy API to use incorrectly, especially given the existing bugs and quirks in the code. So as an alternative, I'm going to port some of what I proposed in #504 -- specifically, the part that adds an AllocationLifetime -- and to add the AllocationLifetime to the public constructor here. This will force the caller to think about the lifetime of the memory *and* mitigate the existing problem with the finalizer, and without breaking backwards-compatibility. -- 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]
