[Mono-dev] how does unmanaged callback marshalling work in full aot?

Geoff Norton grompf at gmail.com
Fri Jul 29 17:14:36 EDT 2011


It is disabled in full-aot environments.  Full-aot only supports static delegates to be pinvoked, and even then they need to be decorated with a special attribute.

See https://github.com/mono/mono/blob/master/mono/mini/aot-compiler.c around line 2793.

-g

On 2011-07-29, at 5:03 PM, Brian Luczkiewicz wrote:

> I'm having trouble seeing how an arbitrary delegate can be marshalled into an unmanaged function pointer without runtime code generation to capture the object pointer.
> 
> Is this functionality disabled in full-aot environments or is it accomplished by some mechanism that I'm not considering?
> 
> 
> _______________________________________________
> 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/20110729/81f4f3cd/attachment.html 


More information about the Mono-devel-list mailing list