[Mono-devel-list] AMD64, PInvoke + Native Exceptions

Paolo Molaro lupus at ximian.com
Mon Oct 25 11:36:41 EDT 2004


On 10/25/04 Zoltan Varga wrote:
> > This can't be done with the current trampoline code: it would help if you went
> > and read the code so you'd have some idea of the things you propose.
[...]
> This is implemented on amd64 with the current code. However, I agree that it is
> pretty hard to guarantee that the caller and callee are in the same 2GB segment.

Not in a completely useful way: it's a band-aid hack.
*) it can't handle valuetype methods
*) it has a larger memory footprint
*) once the magic trampoline runs once, the call site and vtable slots
using the trampoline won't be patched to try and go straight to the compiled 
code even if they could

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list