[jboss-user] [JBoss Cache: Core Edition] - Re: Excessive ReentrantLock$NonfairSync objects

manik.surtani@jboss.com do-not-reply at jboss.com
Fri Jul 4 05:02:42 EDT 2008

Yes, but the CHMs used in the nodes to hold children don't use the default 16 segments:

  |             // Less segments to save memory
  |             children = new ConcurrentHashMap<Object, Node<K, V>>(4, .75f, 4);

Ah, but the LockMaps do!!  Each LockMap - used to hold information on concurrent readers when using pessimistic locking - uses a ConcurrentHashSet, which is a wrapper around a CHM that implements Set.


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

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

More information about the jboss-user mailing list