Closed dylanrb123 closed 11 months ago
Tested this locally by building the JAR and loading that in a small java app that loads a large (14gb) index, closes it, and then just hangs. Monitoring the mem usage I was able to see it reclaim the memory as expected. Before this change even after the index was closed the memory was not released.
free
will just free the memory for the pointer itself, by calling the native destructor it should actually free the underlying memory.