[Mono-bugs] [Bug 504573] Delegate: Remove and GetInvocationList should not return clones

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 26 19:40:46 EDT 2009


User rkumpera at novell.com added comment

Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
                 CC|                            |rkumpera at novell.com

--- Comment #5 from Rodrigo Kumpera <rkumpera at novell.com>  2009-05-26 17:40:44 MDT ---
Fixing this is far from trivial because of the current implementation of

The current implementation relies on prev references and recursively calls over

This means that we can't recover the original delegate for GetInvocationList or
any other methods. Which is a bummer since this causes unneeded object creation
and, more importantly, of non warmed delegates.

I believe changing this would be useful as it would reduce the size of
MulticastDelegate by one reference. Delegate with multiple target would use
more memory, but our optimization target are single cast delegates.

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