jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1002170 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
Date Tue, 28 Sep 2010 14:18:17 GMT
Author: jukka
Date: Tue Sep 28 14:18:17 2010
New Revision: 1002170

URL: http://svn.apache.org/viewvc?rev=1002170&view=rev
Log:
JCR-2699: Improve read/write concurrency

Use soft references instead of weak ones in ItemStateReferenceCache to keep the references
around for as long as there is available memory.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java?rev=1002170&r1=1002169&r2=1002170&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
Tue Sep 28 14:18:17 2010
@@ -54,7 +54,7 @@ public class ItemStateReferenceCache imp
      */
     @SuppressWarnings("unchecked")
     private final Map<ItemId, ItemState> refs =
-        new ReferenceMap(ReferenceMap.HARD, ReferenceMap.WEAK);
+        new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
 
     /**
      * secondary cache that automatically flushes entries based on some



Mime
View raw message