[Mono-list] RE: [Ikvm-developers] ikvm under mono && mauve tests

2003-02-15 Thread Jeroen Frijters
Hi Paolo,

Attached is a testcase. Runs in 50ms on MS .NET, takes 16534 ms on Mono
0.l7 (sorry, I don't have a more recent version).

Regards,
Jeroen

>  
>  
> -Original Message-
> From: Paolo Molaro [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, February 15, 2003 19:37
> To: [EMAIL PROTECTED]
> 
> On 02/15/03 Jeroen Frijters wrote:
> > > - gnu.testlet.java.lang.reflect.Array.newInstance hangs because
> > >   java.lang.reflect.Array.newInstance (String.class, new
> > > int[255]) is very slow (at least under mono).
> > 
> > Paolo, could you please have a look at this?
> 
> What is that code supposed to do?
> I wrote a simple program to create a n-dimensional array in C#:
> 
> using System;
> class T {
>   static void Main () {
>   Array a1 = Array.CreateInstance (typeof 
> (string), new int [32]);
>   Console.WriteLine ("{0}", a1);
>   }
> }
> 
> I also used 255 instead of 32 and the code runs fast, with no
> noticeable delay (the MS runtime doesn't allow a dimension > 32).
> 
> If the code is supposed to create a jagged array with 255 dimensions I
> can see why it would be slow:-) But I doubt it's supposed to do that,
> right? I'm completely clueless about the java API, so if you can
> describe what should happen there, I'll write a test.
> 
> Thanks.
> 
> lupus
> 
> -- 
> -
> [EMAIL PROTECTED] debian/rules
> [EMAIL PROTECTED] Monkeys do it better
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> Ikvm-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/ikvm-developers
> 



arraytest.cs
Description: arraytest.cs


[Mono-list] ikvm and Mono 0.20

2003-02-25 Thread Jeroen Frijters
Title: ikvm and Mono 0.20






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 "" 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 != VAL_UNKNOWN) aborting...

* Running mint on ikvm.exe produces no output whatsoever


Regards,

Jeroen