r26764 - trunk/freenet/src/freenet/support/io

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-14 04:41:29 +0000 (Tue, 14 Apr 2009)
New Revision: 26764

Modified:
   trunk/freenet/src/freenet/support/io/BaseFileBucket.java
Log:
Logging (BaseFileBucket.java)

Profiling show this contribute to 5% of all shouldLog() calls

Modified: trunk/freenet/src/freenet/support/io/BaseFileBucket.java
===================================================================
--- trunk/freenet/src/freenet/support/io/BaseFileBucket.java	2009-04-14 04:41:06 UTC (rev 26763)
+++ trunk/freenet/src/freenet/support/io/BaseFileBucket.java	2009-04-14 04:41:29 UTC (rev 26764)
@@ -408,7 +408,7 @@
 	
 	public void free(boolean forceFree) {
 		Object[] toClose;
-		if(Logger.shouldLog(Logger.MINOR, this))
+		if(logMINOR)
 			Logger.minor(this, "Freeing "+this, new Exception("debug"));
 		synchronized(this) {
 			if(freed) return;
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.