[Mono-bugs] [Bug 643377] EqualityComparer<T> Attempts to JIT compile when deployed to the device

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 3 13:19:09 EDT 2010



Kornél Pál <kornelpal at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |kornelpal at gmail.com

--- Comment #4 from Kornél Pál <kornelpal at gmail.com> 2010-10-03 17:19:09 UTC ---
I've had a look at the limitations and believe that adding special support to
the AOT compiler for System.Collections.Generic.Comparer<T> and
System.Collections.Generic.EqualityComparer<T> would be reasonable.

The logic implemented by their static constructors is so simple that the AOT
compiler could easily determine if another generic instantiation of the helper
class is required to be AOT compiled. This would not add much overhead to the
AOT compiler either since type of T has to be known anyway so ony the name of
these two comparer classes should be matched.

Note that the documentation is somehow contradicts itself on whether
Type.GetType is supported and I don't know whether MakeGenericType is supported
on types that were actually compiled AOT. Even if the entire static constructor
for these two comparers needed to be implemented in the AOT compiler I still
belive that it was reasonable.

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