You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use mapped byte buffers when we dump matrices into files. However, there
is currently no way to close a MappedByteBuffer via public API. On Windows
this means that the file keeps open and cannot be deleted, renamed, etc. The
mapped byte buffer is closed when it is garbage collected so we could try to
invoke garbage collection after mapping or use the internal Cleaner API.
We use mapped byte buffers when we dump matrices into files. However, there
is currently no way to close a
MappedByteBuffer
via public API. On Windowsthis means that the file keeps open and cannot be deleted, renamed, etc. The
mapped byte buffer is closed when it is garbage collected so we could try to
invoke garbage collection after mapping or use the internal
Cleaner
API.For example, this will fail on Windows:
Adding a
Cleaner
call currently works but it is internal API and it seemsthat this was removed in Java 9:
This issue is just for tracking this as there seem to be no real solution to
this problem available currently.
References:
The text was updated successfully, but these errors were encountered: