[Mono-bugs] [Bug 630053] CustomAttributeData.GetCustomAttributes is loading too aggresively

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 13 19:57:49 EDT 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=630053#c5


Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO
       InfoProvider|                            |msafar at novell.com

--- Comment #5 from Rodrigo Kumpera <rkumpera at novell.com> 2010-08-13 23:57:48 UTC ---
The problem here is that GetMembers is retrieving the whole world and a bit
more.

This is very problematic for mono since we can't use broken fields at all.

The solution for this is either very cumbersome or loads of work.

Before I endeavor myself into taking either road can you try a reasonable
compromise on mcs?

GetMembers doesn't work on broken types, can we just load members individually
and then try fields and ignore them in case or errors? Is that possible, viable
or correct?

The right solution is to split field loading into 2 steps, one for name/flags
and another for types, the second to be done lazily until the class layout is
required.

There are a lot of issues with such change so that it can be done without
increasing footprint or startup time.

-- 
Configure bugmail: http://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