On Wed, Sep 9, 2015 at 11:46 AM, Peter Levart <peter.lev...@gmail.com> wrote: > > By wanting to truly release the resources you allocated, you are essentially > wanting to manage the resources yourself. If you are willing to track the > active mapped byte buffers manually yourself, then what about the following > idea: >
As Uwe mentioned that is probably not truly necessary. If lucene cannot delete a file, it retries it later periodically until it works. So if things were unmapped "soonish", for the lucene case things would be fine I think. I do realize other apps may not have that infrastructure/luxury...