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

Paolo Molaro lupus at ximian.com
Tue Jul 29 06:10:07 EDT 2003


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.
Thanks.

lupus

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



More information about the Mono-devel-list mailing list