[concurrency-interest] StampedLock

Doug Lea dl at cs.oswego.edu
Fri Oct 12 12:29:33 EDT 2012


On 10/12/12 12:11, Aleksey Shipilev wrote:

> Not particularly a usage experience, but semantics question. What are
> the memory semantics of SL methods?

The effects are exactly the same as for the corresponding methods 
ReentrantReadWriteLock. They aren't fleshed out yet in the Javadoc
because cases involving OptimisticReads resist simple characterization
in JMMese. We'll find some way to do this, but in the mean time,
hopefully you can be comforted that they do what anyone would expect :-)

-Doug





More information about the Concurrency-interest mailing list