From f7789cbb5e8742684a3576e2cacb6d74f44825c7 Mon Sep 17 00:00:00 2001 From: leventov Date: Sat, 25 Jul 2015 22:50:58 +0300 Subject: [PATCH] Reduce maximum nested contexts depth from 16k to 1k --- .../net/openhft/chronicle/hash/impl/stage/hash/Chaining.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/openhft/chronicle/hash/impl/stage/hash/Chaining.java b/src/main/java/net/openhft/chronicle/hash/impl/stage/hash/Chaining.java index 79274ec64..0b0d470af 100644 --- a/src/main/java/net/openhft/chronicle/hash/impl/stage/hash/Chaining.java +++ b/src/main/java/net/openhft/chronicle/hash/impl/stage/hash/Chaining.java @@ -68,7 +68,7 @@ public class Chaining { return (T) context; } } - int maxNestedContexts = 1 << 16; + int maxNestedContexts = 1 << 10; if (contextChain.size() > maxNestedContexts) { throw new IllegalStateException("More than " + maxNestedContexts + " nested ChronicleHash contexts are not supported. Very probable that " +