summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-11-15 08:19:56 (EST)
committerEike Stepper2007-11-15 08:19:56 (EST)
commit60d8d9dee24f20b04dc6da7824d723ea408ed264 (patch)
treec51062adb579ecaa554c140f8657fae74fec5514
parent8b661b8f2e882bb7cc1f30f85c78a202b4d80ea1 (diff)
downloadcdo-60d8d9dee24f20b04dc6da7824d723ea408ed264.zip
cdo-60d8d9dee24f20b04dc6da7824d723ea408ed264.tar.gz
cdo-60d8d9dee24f20b04dc6da7824d723ea408ed264.tar.bz2
[209490] Put purging mechanism in CDOViewIMpl::objects to avoid OutOfMemory
https://bugs.eclipse.org/bugs/show_bug.cgi?id=209490
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
index 40cd526..b20ce0e 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
@@ -54,7 +54,6 @@ import org.eclipse.net4j.internal.util.om.trace.ContextTracer;
import org.eclipse.net4j.signal.IFailOverStrategy;
import org.eclipse.net4j.util.ImplementationError;
import org.eclipse.net4j.util.ref.ReferenceValueMap;
-import org.eclipse.net4j.util.ref.ReferenceValueMap.Soft;
import java.text.MessageFormat;
import java.util.ArrayList;
@@ -101,9 +100,9 @@ public class CDOViewImpl extends org.eclipse.net4j.internal.util.event.Notifier
objects = createObjectsMap();
}
- protected Soft<CDOID, InternalCDOObject> createObjectsMap()
+ protected ConcurrentMap<CDOID, InternalCDOObject> createObjectsMap()
{
- return new ReferenceValueMap.Soft<CDOID, InternalCDOObject>();
+ return new ReferenceValueMap.Weak<CDOID, InternalCDOObject>();
}
public int getViewID()