Hi;

I've opened up an issue in Jira to request a change to reduce the freqency of 
calls to BoundedBuffer.size() in Region.putNodeEvent().

http://jira.jboss.com/jira/browse/JBCACHE-190

The problem is that BoundedBuffer.size() is not a cheap call - requires a lock 
acquisition - and since there is high contention for this object across 
threads, this leads to concurrency problems.

I've attached an enhanced Region.java file that makes the call only once every 
100 calls. 

Brian.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to