dweiss commented on issue #15068: URL: https://github.com/apache/lucene/issues/15068#issuecomment-3190818087
The code seems correct to me (and I ran a simple test to verify). It's more likely that the reference to a RefCountedArena object itself is lost somewhere. This can be debugged with some trickery - add a static Cleaner that tracks gc on the allocated Arenas and makes sure their state count is zeroed/released when arena is gc'ed. If it's not zeroed - it means ref counting failed somewhere. It's a bit convoluted but works - I have code like this used somewhere. I can't work on it today - will be travelling - but if needed, let me know. -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org