[jboss-dev-forums] [Design of JBossCache] - Re: Lock striping broken for Second Level Cache use case
jason.greene@jboss.com
do-not-reply at jboss.com
Wed Mar 18 14:07:09 EDT 2009
"jason.greene at jboss.com" wrote : "manik.surtani at jboss.com" wrote : Actually, getLock().4 should read:
| |
| | 4. after acquisition, test that lock acquired is same as lock created in 1, otherwise unluck, discard lock and try again.
|
| Why is this step needed? If everything is using putIfAbsent you shouldn't have a problem.
Ah I see this is to handle the case of a blocked/queued thread acquiring a lock. Hmm this kind of defeats the performance benefit of aqs lock queueing
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219198#4219198
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219198
More information about the jboss-dev-forums
mailing list