summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-30 12:21:10 (EDT)
committerEike Stepper2007-09-30 12:21:10 (EDT)
commite55c1727083a6f457f9db29ba3a3391564c456d6 (patch)
tree29bb360d39e1a4f323fae0430b3642ba076d3cea
parent14d4cb7e6115027ffe36b2060667c1a3912f3572 (diff)
downloadcdo-e55c1727083a6f457f9db29ba3a3391564c456d6.zip
cdo-e55c1727083a6f457f9db29ba3a3391564c456d6.tar.gz
cdo-e55c1727083a6f457f9db29ba3a3391564c456d6.tar.bz2
[203538] Limit memory consumption in CDORevisionResolverImpl
https://bugs.eclipse.org/bugs/show_bug.cgi?id=203538
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java
index db66544..5415ec1 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java
@@ -27,6 +27,8 @@ import org.eclipse.emf.internal.cdo.util.FSMUtil;
import org.eclipse.net4j.tests.AbstractTransportTest;
import org.eclipse.net4j.util.container.IManagedContainer;
+import java.util.HashMap;
+import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
@@ -50,9 +52,15 @@ public abstract class AbstractCDOTest extends AbstractTransportTest
protected Repository createRepository()
{
+ Map<String, String> props = new HashMap<String, String>();
+ // props.put(RevisionManager.PROP_CURRENT_LRU_CAPACITY, "20");
+ // props.put(RevisionManager.PROP_REVISED_LRU_CAPACITY, "20");
+
IStore store = createStore();
+
Repository repository = new Repository();
repository.setName(REPOSITORY_NAME);
+ repository.setProperties(props);
repository.setStore(store);
store.setRepository(repository);