Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions io/src/main/java/org/apache/pdfbox/io/IOUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public static IOException closeAndLogException(Closeable closeable, Logger logge

/**
* Unmap memory mapped byte buffers. This is a hack waiting for a proper JVM provided solution expected in java 10
* https://bugs.openjdk.java.net/browse/JDK-4724038 The issue here is that even when closed, memory mapped byte
* buffers hold a lock on the underlying file until GC is executes and this in turns result in an error if the user
* <a href="https://bugs.openjdk.java.net/browse/JDK-4724038">Add unmap method to MappedByteBuffer</a>. The issue here is that even when closed, memory mapped byte
* buffers hold a lock on the underlying file until GC is executing and this in turns result in an error if the user
* tries to move or delete the file.
*
* @param buf the buffer to be unmapped
Expand Down