[jboss-user] [JBossCache] - Re: Concurrency issue in OrderedSynchronizationHandler (2.0.

manik.surtani@jboss.com do-not-reply at jboss.com
Fri Mar 7 11:19:32 EST 2008

As with all problems of this nature, this is pretty hard to reproduce and I haven't been successful at it, but I can see how it is a problem, both in being not thread safe as well as a static context variable potentially shared across cache instances in the same VM.

In general, the whole use of statics here is pretty ugly - I have changed this in HEAD so if you guys have the time, I'd appreciate your giving it a try in HEAD.

The change is simple and should be very low risk - OSH has no static variables anymore; instead it is instantiated when a TransactionEntry is created and the ref is stored in and obtained from the TransactionEntry, rather than the factory method on OSH.

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

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

More information about the jboss-user mailing list