You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/06/29 15:39:32 UTC
[3/6] jena git commit: Use JenaRuntime.getSystemProperty
Use JenaRuntime.getSystemProperty
See https://github.com/apache/jena/pull/47#discussion_r29499092
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/f1a2752b
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/f1a2752b
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/f1a2752b
Branch: refs/heads/master
Commit: f1a2752bc881f61777a94fbc3ec8c3fbffb731ea
Parents: 529fc96
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Fri Jun 24 13:32:51 2016 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Fri Jun 24 13:32:51 2016 +0100
----------------------------------------------------------------------
.../org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/f1a2752b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java
index 4ce515d..0ea82dd 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java
@@ -27,6 +27,7 @@ import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
+import org.apache.jena.JenaRuntime;
import org.apache.jena.ext.com.google.common.cache.Cache;
import org.apache.jena.ext.com.google.common.cache.CacheBuilder;
import org.slf4j.Logger;
@@ -68,8 +69,8 @@ public class LPBRuleEngine {
/** List of engine instances which are still processing queries */
protected List<LPInterpreter> activeInterpreters = new LinkedList<>();
- protected final int MAX_CACHED_TABLED_GOALS =
- Integer.getInteger("jena.rulesys.lp.max_cached_tabled_goals", 512*1024);
+ protected final int MAX_CACHED_TABLED_GOALS = Integer.parseInt(
+ JenaRuntime.getSystemProperty("jena.rulesys.lp.max_cached_tabled_goals", "524288"));
/** Table mapping tabled goals to generators for those goals.
* This is here so that partial goal state can be shared across multiple queries.