hchar 2005/01/29 05:31:21
Modified: sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref
KeyedRefCollector.java
Log:
count only if debug
Revision Changes Path
1.7 +2 -1
jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref/KeyedRefCollector.java
Index: KeyedRefCollector.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref/KeyedRefCollector.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- KeyedRefCollector.java 29 Jan 2005 12:37:01 -0000 1.6
+++ KeyedRefCollector.java 29 Jan 2005 13:31:21 -0000 1.7
@@ -54,7 +54,8 @@
// remove unused lock; may fail but that's fine.
synMap.remove(keyedRef.getKey(), ref);
// referent should have been cleared by GC.
- this.count.incrementAndGet();
+ if (debug)
+ this.count.incrementAndGet();
}
}
public int getCount() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]