[Mono-bugs] [Bug 596964] New: Default event accessor code still uses lock, inconsistent with .net 4.0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 15 11:38:56 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=596964

http://bugzilla.novell.com/show_bug.cgi?id=596964#c0


           Summary: Default event accessor code still uses lock,
                    inconsistent with .net 4.0
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ickard at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2
(KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2

dmcs still uses synchronized methods for the default add_X and remove_X event
accessors. Should be changed to use Interlocked.CompareExchange() for dmcs to
be consistent with .net 4.0 csc.

More info:
http://channel9.msdn.com/posts/bruceky/Whirlwind-14-Whats-new-in-C-4-Events/

Reproducible: Always

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


More information about the mono-bugs mailing list