[Mono-devel-list] problem with passing RuntimeTypeHandle args to the runtime

Laurent Morichetti l_m at pacbell.net
Thu Jul 31 04:02:16 EDT 2003

I updated my mcs sources and removed the hack I had in the trampoline code and now it works. Thanks.

Paolo Molaro <lupus at ximian.com> wrote:
On 07/26/03 Laurent Morichetti wrote:
> I'm having a problem with the trampoline code when passing a
> RuntimeTypeHandle argument. It is assumed by the callee method that a
> RuntimeTypeHandle is equivalent to a MonoType*.
> On most platforms this assumption is correct but on HP-UX IPF 32bit (big
> endian) it is not.

Right, we have a related issue on sparc, too.

> Should the trampoline code convert a RuntimeTypeHandle vt argument to a
> scalar argument or should it be handled by the runtime? If handled by the
> trampoline code, is there any other types assumed to be equivalent to their
> unboxed representation?

The solution is to declare the internal calls to take a pointer
and change the code to pass RuntimeTypeHandle.Value: this avoids any
special cases.
I'll commit a fix for RuntimeTypeHandle in minutes, though there may be
other such cases for similar constructs.


lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030731/bcef592e/attachment.html 

More information about the Mono-devel-list mailing list