Merge branch 'listeners' of https://github.com/OpenHFT/Chronicle-Map into listeners

Conflicts:
	src/main/java/net/openhft/chronicle/map/FilePerKeyChronicleMap.java
	src/main/java/net/openhft/chronicle/map/impl/CompiledReplicatedMapQueryContext.java
This commit is contained in:
leventov
2015-06-15 21:40:55 +03:00
7 changed files with 5 additions and 818 deletions
@@ -1360,7 +1360,9 @@ public final class ChronicleMapBuilder<K, V> implements
try {
// pushingToMapEventListener();
VanillaChronicleMap<K, ?, ?, V, ?, ?, ?> 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);