diff options
author | Sven Gothel <[email protected]> | 2014-09-26 12:13:43 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-09-26 12:13:43 +0200 |
commit | 95c4a3c7b6b256de4293ed1b31380d6af5ab59d0 (patch) | |
tree | f8d2c1e081d559a74679ac73a7375671ea5480e0 /src/java/com/jogamp/common | |
parent | 86541252028e0b2093b87836732924b6746858ca (diff) |
Bug 1080 - Fix TestByteBufferInputStream: Handle OutOfMemoryError cause in IOException (Add note to FLUSH_NONE); Reduce test load / duration.
Diffstat (limited to 'src/java/com/jogamp/common')
-rw-r--r-- | src/java/com/jogamp/common/nio/MappedByteBufferInputStream.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/nio/MappedByteBufferInputStream.java b/src/java/com/jogamp/common/nio/MappedByteBufferInputStream.java index 52f5b5a..5ac1ffb 100644 --- a/src/java/com/jogamp/common/nio/MappedByteBufferInputStream.java +++ b/src/java/com/jogamp/common/nio/MappedByteBufferInputStream.java @@ -56,6 +56,13 @@ public class MappedByteBufferInputStream extends InputStream { * Keep all previous lazily cached buffer slices alive, useful for hopping readers, * i.e. random access via {@link MappedByteBufferInputStream#position(long) position(p)} * or {@link MappedByteBufferInputStream#reset() reset()}. + * <p> + * Note that without flushing, the platform may fail memory mapping + * due to virtual address space exhaustion.<br> + * In such case an {@link OutOfMemoryError} may be thrown directly, + * or encapsulated as the {@link IOException#getCause() the cause} + * of a thrown {@link IOException}. + * </p> */ FLUSH_NONE, /** |