[Mono-dev] AOT compiler crash

Rodrigo Kumpera kumpera at gmail.com
Mon Jan 23 12:28:43 UTC 2012


Thanks for the clarification, Zoltan did fix master.


On Sat, Jan 21, 2012 at 6:20 AM, Jeroen Frijters <jeroen at sumatra.nl> wrote:

> Michael Bayne wrote:
> > which is what contains the failing assert:
> >
> >       g_assert (method && method->klass->parent ==
> > mono_defaults.multicastdelegate_class &&
> >                 !strcmp (method->name, "BeginInvoke"));
>
> This assert is wrong. The BeginInvoke and EndInvoke methods are optional
> in a delegate (and IKVM.OpenJDK.Core.dll defines a couple of delegates that
> don't have them).
>
> Here's the relevant bit from the ECMA CLI specification:
>
> "In addition to an instance constructor and an Invoke method, delegates
> can optionally have two additional
> methods: BeginInvoke and EndInvoke. These are used for asynchronous calls."
>
> As a workaround, you can add the BeginInvoke and EndInvoke methods or
> remove the delegates (and then fixup the few locations in IKVM.Runtime that
> use them). They are in /ikvm/classpath/ikvm/runtime/Delegates.java
>
> If you end up adding the BeginInvoke/EndInvoke methods, please send me the
> patch and I'll incorporate it.
>
> Regards,
> Jeroen
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120123/e48b919f/attachment.html>


More information about the Mono-devel-list mailing list