You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2014/08/01 21:47:32 UTC

git commit: TAP5-2336: Trade some memory to remove lock contention resolving resources on the classpath

Repository: tapestry-5
Updated Branches:
  refs/heads/master 6a63c5166 -> 7e710abee


TAP5-2336: Trade some memory to remove lock contention resolving resources on the classpath


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/7e710abe
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/7e710abe
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/7e710abe

Branch: refs/heads/master
Commit: 7e710abee2dc00d73149ba301c80af5f5df8269d
Parents: 6a63c51
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Fri Aug 1 12:47:35 2014 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Fri Aug 1 12:47:35 2014 -0700

----------------------------------------------------------------------
 .../org/apache/tapestry5/internal/services/AssetSourceImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/7e710abe/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
index 42e339b..cfafcba 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
@@ -55,7 +55,7 @@ public class AssetSourceImpl extends LockSupport implements AssetSource
 
     private final Map<String, Resource> prefixToRootResource = CollectionFactory.newMap();
 
-    private final Map<Resource, SoftReference<Asset>> cache = new WeakHashMap<Resource, SoftReference<Asset>>();
+    private final Map<Resource, SoftReference<Asset>> cache = CollectionFactory.newConcurrentMap();
 
     private final SymbolSource symbolSource;