[freenet-cvs] r20239 - branches/db4o/freenet/src/freenet/client

toad at freenetproject.org toad at freenetproject.org
Fri Jun 6 12:23:53 UTC 2008


Author: toad
Date: 2008-06-06 12:23:53 +0000 (Fri, 06 Jun 2008)
New Revision: 20239

Modified:
   branches/db4o/freenet/src/freenet/client/FECQueue.java
Log:
runningFECThreads and fecPoolCounter need to be non-static, transient and at the top of the file

Modified: branches/db4o/freenet/src/freenet/client/FECQueue.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/FECQueue.java	2008-06-06 12:23:02 UTC (rev 20238)
+++ branches/db4o/freenet/src/freenet/client/FECQueue.java	2008-06-06 12:23:53 UTC (rev 20239)
@@ -36,6 +36,8 @@
 	private transient DBJobRunner databaseJobRunner;
 	private transient Executor executor;
 	private transient ClientContext clientContext;
+	private transient int runningFECThreads;
+	private transient int fecPoolCounter;
 
 	/** Called after creating or deserializing the FECQueue. Initialises all the transient fields. */
 	void init(int priorities, int maxCacheSize, DBJobRunner dbJobRunner, Executor exec, ClientContext clientContext) {
@@ -300,9 +302,6 @@
 		}
 	}
 
-	private static int runningFECThreads;
-	private static int fecPoolCounter;
-
 	public void handleLowMemory() throws Exception {
 		synchronized (this) {
 			maxRunningFECThreads = Math.min(1, maxRunningFECThreads - 1);




More information about the cvs mailing list