Bugs item #1013153, was opened at 2004-08-20 21:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1013153&group_id=22866

Category: JBossCache
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: lantz moore (lmoore)
Assigned to: Nobody/Anonymous (nobody)
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.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1013153&group_id=22866


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to