Bugs item #1013153, was opened at 2004-08-20 21:58
Message generated for change (Comment added) made by lmoore
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1013153&group_id=22866
Category: JBossCache
Group: v3.2
Status: Closed
Resolution: Duplicate
Priority: 5
Submitted By: lantz moore (lmoore)
Assigned to: Ben Wang (bwang00)
Summary: infinite loop in LRUAlgorithm.prune
Initial Comment:
i noticed that after certain operations,
LRUAlgorithm.prune seemed to go into an infinite loop.
taking a look with a debugger, i saw that a NodeEntry
was pointing to itself.
the problem was in the following code from removeFromQueue:
ne.getPrevious().setNext(ne.getPrevious());
ne.getNext().setPrevious(ne.getNext());
which makes ne.getPrevious() point to itself with it's
next link.
i've included a patch that seems to fix the issue.
note: the same backward linking logic is used in the
commented out code in the promote method.
----------------------------------------------------------------------
>Comment By: lantz moore (lmoore)
Date: 2004-08-27 16:54
Message:
Logged In: YES
user_id=20741
this does not appear to be fixed on the 3.2 branch:
in version 1.8.2.3, the following code still exists in
LRUAlgorithm.removeFromQueue:
ne.getPrevious().setNext(ne.getPrevious());
ne.getNext().setPrevious(ne.getNext());
----------------------------------------------------------------------
Comment By: Ben Wang (bwang00)
Date: 2004-08-24 07:42
Message:
Logged In: YES
user_id=718568
I have fixed this issue since JBossCache1.02 of which I have
just ported to 3.2 about 2 weeks ago. So please double
check it again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1013153&group_id=22866
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development