[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-461) Potential bug in ReentrantWriterPreferenceReadWriteLock from util.concurrent

Bela Ban (JIRA) jira-events at jboss.com
Mon Dec 4 07:40:56 EST 2006


    [ http://jira.jboss.com/jira/browse/JBCACHE-461?page=comments#action_12348115 ] 
            
Bela Ban commented on JBCACHE-461:
----------------------------------

Hmm, from the documentation of ReentrantReadWriteLock:
"
# Lock downgrading

Reentrancy also allows downgrading from the write lock to a read lock, by acquiring the write lock, then the read lock and then releasing the write lock. However, upgrading from a read lock to the write lock is not possible. 
"

Upgrading is essential for JBossCache, so we should inquire (concurrency-interest mailing list) *why* this is not supported.


> Potential bug in ReentrantWriterPreferenceReadWriteLock from util.concurrent
> ----------------------------------------------------------------------------
>
>                 Key: JBCACHE-461
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-461
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.2.4, 1.2.4SP1
>            Reporter: Manik Surtani
>         Assigned To: Manik Surtani
>            Priority: Minor
>             Fix For: 2.0.0.GA
>
>
> Need to discuss on util.concurrent mail list.
> See org.jboss.cache.lock.ReentrantWriterPreference2Readers1WriterLockTest

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list