Author: andreas
Date: Wed Aug 29 13:23:50 2007
New Revision: 570920
URL: http://svn.apache.org/viewvc?rev=570920&view=rev
Log:
Put simple object instead of source wrapper in sourceUris map. This avoids a memory leak. See bug 43240.
Modified:
lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceWrapper.java
Modified: lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceWrapper.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceWrapper.java?rev=570920&r1=570919&r2=570920&view=diff
==============================================================================
--- lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceWrapper.java (original)
+++ lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceWrapper.java Wed Aug 29 13:23:50 2007
@@ -282,7 +282,7 @@
String realSourceUri = getRealSourceUri();
Object lock = lockedUris.get(realSourceUri);
if (lock == null) {
- lock = this;
+ lock = new Object();
lockedUris.put(realSourceUri, lock);
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.