Bugs item #1013153, was opened at 2004-08-20 14:58
Message generated for change (Settings changed) made by bwang00
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: Ben Wang (bwang00)
Date: 2004-08-24 00: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


-------------------------------------------------------
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