diff options
author | Luck <git@lucko.me> | 2022-11-13 09:39:33 +0000 |
---|---|---|
committer | Luck <git@lucko.me> | 2022-11-13 09:39:33 +0000 |
commit | 1d8e0f3a0a115a70146c1462a68990508a71af6e (patch) | |
tree | 8d81739caddb790b1cda04f5c72c4fbfe02e30c9 /spark-common/src/main/java/me/lucko/spark/common | |
parent | 4314cdf23be38f75297c406ca48900c3dd80eec5 (diff) | |
download | spark-1d8e0f3a0a115a70146c1462a68990508a71af6e.tar.gz spark-1d8e0f3a0a115a70146c1462a68990508a71af6e.tar.bz2 spark-1d8e0f3a0a115a70146c1462a68990508a71af6e.zip |
Configurable max stack depth
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/common')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/sampler/node/AbstractNode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/sampler/node/AbstractNode.java b/spark-common/src/main/java/me/lucko/spark/common/sampler/node/AbstractNode.java index fe1afcd..e6f6cf5 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/sampler/node/AbstractNode.java +++ b/spark-common/src/main/java/me/lucko/spark/common/sampler/node/AbstractNode.java @@ -37,7 +37,7 @@ import java.util.stream.IntStream; */ public abstract class AbstractNode { - protected static final int MAX_STACK_DEPTH = 300; + protected static final int MAX_STACK_DEPTH = Integer.getInteger("spark.maxStackDepth", 300); /** A map of the nodes children */ private final Map<StackTraceNode.Description, StackTraceNode> children = new ConcurrentHashMap<>(); |