From dfd7be961846bc34eb8b0978ffe9cc192c9712ad Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Fri, 4 Jun 2021 03:48:15 +0100 Subject: [PATCH] reduce the size of the memmapped file --- core/src/main/java/net/metanotion/io/RAIFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/net/metanotion/io/RAIFile.java b/core/src/main/java/net/metanotion/io/RAIFile.java index b9463cfc..65cf09cc 100644 --- a/core/src/main/java/net/metanotion/io/RAIFile.java +++ b/core/src/main/java/net/metanotion/io/RAIFile.java @@ -45,7 +45,7 @@ import java.util.Set; public class RAIFile implements RandomAccessInterface { - private static final long MAX_SIZE = Integer.MAX_VALUE; + private static final long MAX_SIZE = 0x1 << 29; private File f; private final ByteBuffer byteBuffer;