[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Does ScopeKey need to maintain a sorted (in ScopeLevel.l
smarlow@redhat.com
do-not-reply at jboss.com
Tue Aug 11 09:58:51 EDT 2009
"adrian at jboss.org" wrote :
| The brain dead part is that it gets used at runtime in the BasicMetaDataRepository
| as the key to a map which it then freezes to avoid mutablity.
| The issue being that you still could incur contention because
| of the synchronization on the scopes within the ScopeKey traversed in equals()/hashCode().
|
I assume you mean in the current implementation (even with freeze, synchronization is needed). With the proposed changes, we don't need the synchronization on the scopes within the (immutable) ScopeKey.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249020#4249020
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249020
More information about the jboss-dev-forums
mailing list