Update of /cvsroot/freenet/freenet/src/freenet/support
In directory sc8-pr-cvs1:/tmp/cvs-serv23464/freenet/src/freenet/support

Modified Files:
        LRUQueue.java 
Log Message:
(LoadStats.java) use 200 samples for accept ratio and 
  requests/hour.
(LRUQueue.java) fix an NPE.
(QThreadFactory.java) fix bugs, simplify.  
  Changes since 1.28 really do reduce lock contention.
  added trailing blanks on certain lines so that
  emacs ediff vs. 1.28 does not lose sync.
(ReadSelectorLoop.java) fix typo in comment.
(Version.java) 6208


Index: LRUQueue.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/support/LRUQueue.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- LRUQueue.java       10 Sep 2003 19:45:28 -0000      1.4
+++ LRUQueue.java       26 Sep 2003 09:22:36 -0000      1.5
@@ -47,7 +47,10 @@
     }
 
     public final synchronized void remove(Object obj) {
-        list.remove((QItem)hash.remove(obj));
+        QItem i = (QItem)hash.remove(obj);
+        if (i != null) {
+            list.remove(i); // obj was on the queue.
+        }
     }
 
     public Enumeration elements() {

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to