[Mono-list] ikvm and Mono 0.20

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


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

> Hi,
> I tried running ikvm on Mono 0.20 (on Windows) and here
are my findings:
> * 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)
> * StackFrame.GetFileName() returns "<unknown>" instead of
a null
> reference when the filename isn't known
> * I get an assertion failed: ** ERROR **: file jit.c: line 486
> (mono_store_tree): assertion failed: (s->svt !=3D
VAL_UNKNOWN) aborting...

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

(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 !



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