From fda7e1cd38be86d83ec1eacce7d72894681ec4e4 Mon Sep 17 00:00:00 2001 From: danielshaya Date: Wed, 3 Jun 2015 17:18:22 +0100 Subject: [PATCH] Move Engine from Map 3 to Map 2 --- .../java/net/openhft/chronicle/map/ChronicleMapBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java b/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java index c29e21864..fd0412127 100755 --- a/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java +++ b/src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java @@ -1360,7 +1360,9 @@ public final class ChronicleMapBuilder implements try { // pushingToMapEventListener(); VanillaChronicleMap map = newMap(singleHashReplication, channel); - OS.warnOnWindows(map.sizeInBytes()); + if(OS.warnOnWindows(map.sizeInBytes())){ + throw new IllegalStateException("Windows cannot support this configuration"); + } BytesStore bytesStore = new DirectStore(JDKObjectSerializer.INSTANCE, map.sizeInBytes(), true); map.createMappedStoreAndSegments(bytesStore);