[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Optimizing ControllerState

alesj do-not-reply at jboss.com
Thu Oct 29 08:36:37 EDT 2009


"kabir.khan at jboss.com" wrote : 
  | Let me know when you have checked it and I can add this to AbstractController. 
  | 
That was a joke. ;-)

"kabir.khan at jboss.com" wrote : 
  | One minor issue is the iterator() and listIterator() methods, which are not thread safe at the moment. The other methods are called with a lock taken in AbstractController. For the iterator methods I need to readLock, take a snapshot into a list and return iterators to that list.
  | 
What about if you already keep states in thread safe collection?
Too much overhead with double synching then - AC's lock + synched collection?

"kabir.khan at jboss.com" wrote : 
  | Another thing I have not checked is how states work in a hierarchy of controllers
Afaik, it shouldn't be a problem, as we don't use anything extraordinary.


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

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



More information about the jboss-dev-forums mailing list