[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMDR-1; LRU cache impl

alesj do-not-reply at jboss.com
Wed Jul 2 10:16:24 EDT 2008


Eh, I could type LRU in IDE to get that. :-)
Thanks.

But I see it uses plain HashMap to hold entries ...

>From past week :-)
"adrian at jboss.org" wrote : 
  | > 1) I don't think we care about if two threads override each others info
  | 
  | That's not the issue. 
  | 
  | A HashMap can break completely if two threads are updating 
  | the underlying data structures at the same time.
  | 
  | This can then cause all sorts of weird behaviour,
  | e.g. infinite loops when the broken linked list
  | contains links that link to themselves
  | 

I'll make it optional - fixing it in the commons-core.
Till then synchronizing on access.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162086#4162086

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162086



More information about the jboss-dev-forums mailing list