Method to unmap MappedByteBuffer
Luke Hutchison
luke.hutch at gmail.com
Mon Jan 7 13:41:20 UTC 2019
Would it be possible to keep the address space mapped until GC, but unmap
the file, to at least solve the file locking problem on Windows?
Alternatively, I read in a few places that with the Windows file API, if
you open a file in shared mode, it can be deleted while reading from it (no
exclusive lock is held). Could the JDK Windows mmap code be changed to open
the file in shared mode? (I don't know what the semantics would be if you
deleted a currently-mmap'd file on Windows.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190107/6d56466e/attachment.html>
More information about the nio-dev
mailing list