diff --git a/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java b/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java index a0a4ac478..1bd792d18 100755 --- a/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java +++ b/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java @@ -383,7 +383,7 @@ public final class ChronicleMapBuilder implements VanillaChronicleHash map, RandomAccessFile raf, ByteBuffer headerBuffer, int headerSize) throws IOException { FileChannel fileChannel = raf.getChannel(); - // see HCOLL-396 + // see https://higherfrequencytrading.atlassian.net/browse/HCOLL-396 map.msync(); //noinspection PointlessBitwiseExpression @@ -1475,6 +1475,7 @@ public final class ChronicleMapBuilder implements if (raf.length() > 0) return result = openWithExistingFile(file, raf, recover, overrideBuilderConfig); + // Single-element arrays allow to modify variables within lambda @SuppressWarnings("unchecked") VanillaChronicleMap[] map = new VanillaChronicleMap[1]; ByteBuffer[] headerBuffer = new ByteBuffer[1];