[Mono-bugs] [Bug 655361] New: ReaderWriterLockSlim with recursion: ExitReadLock wrong.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 22 15:50:03 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=655361

https://bugzilla.novell.com/show_bug.cgi?id=655361#c0


           Summary: ReaderWriterLockSlim with recursion: ExitReadLock
                    wrong.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: mj at netbits.at
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development
           Blocker: ---


If you make more than one recurive ReadLocks in different classes with the same
Instanz of ReaderWriterLockSlim(with SupportsRecursion) mono creates an
Exception(System.Threading.SynchronizationLockException). 

I make 3 EnterReadLock calls. And than i make one ExitReadLock call. The
"CurrentReadCount" and the "RecursiveReadCount" decrement?!? Why dose the
CurrentReadCount decrement! 

I test it on Microsoft .Net and it runs perfectly. So i think this is a bug!.

Tested on Ubuntu 10.10 with Mono 2.8.1, Mono Live-CD ISO from 22.11.2010,
Microsoft .NET / Windows 7.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list