[Mono-list] ikvm and Mono 0.20

Varga Zoltan vargaz@freemail.hu
Tue, 25 Feb 2003 22:31:06 +0100 (CET)


=20
                                                 Hi,


Jeroen Frijters <jeroen@sumatra.nl> =EDrta:

> Hi,
>=20
> I tried running ikvm on Mono 0.20 (on Windows) and here
are my findings:
>=20
> * The --noinline and --share-code switches are still
required, because
> otherwise Mono will run the .cctor methods to early (and,
by my reading,
> the Mono behavior is not allowed by the ECMA spec)
>=20
> * StackFrame.GetFileName() returns "<unknown>" instead of
a null
> reference when the filename isn't known
>=20
> * I get an assertion failed: ** ERROR **: file jit.c: line 486
> (mono_store_tree): assertion failed: (s->svt !=3D
VAL_UNKNOWN) aborting...
>=20

Thats bug #38017. It will be fixed when the new JIT is
released. It is
triggered by this line in JavaTypeImpl.Finish():

ilGenerator.EmitCalli(OpCodes.Calli,
System.Runtime.InteropServices.CallingConvention.StdCall,
(retType.IsValueType || retType =3D=3D typeof(void)) ? retType :
typeof(IntPtr), modargs);

It can be worked around if you put the (retType...
expression into
a temporary variable first. But mono 0.20 will not work
after this=20
because of some reflection bugs triggered by the latest
changes in
IKVM. But I'm working on fixing them !

                              bye

                                 Zoltan







> * Running mint on ikvm.exe produces no output whatsoever
>=20
> Regards,
> Jeroen
>=20