[concurrency-interest] Problem with ReentrantReadWriteLock

Doug Lea dl@cs.oswego.edu
Thu, 1 Jul 2004 07:28:49 -0400


Thanks VERY much for reporting this! 

This was indeed an error. Contrary to the spec, fair readlock acquires
gave precedence to FIFOness over re-entrancy, so could fail to allow
reentrant readlock after acquiring writelock when there were other
contending threads. Somehow we hadn't checked or tested this case.

Sorry for the problems.  We'll get the fix in place as soon as
possible.  For now the workaround is not to use fair mode.

-Doug