[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-list
Subject:    Re: [Mono-list] Re: Questions in Interop
From:       Marcus <mathpup () mylinuxisp ! com>
Date:       2005-10-05 4:55:31
Message-ID: 200510042355.31359.mathpup () mylinuxisp ! com
[Download RAW message or body]

The Mono layout looks similar to IBM's JVM, but not to Sun's reference 
implementation.

For ordinary objects in Sun's reference implementation, the first field 
contains a pointer to a header. The first element of the header points to the 
instrance variables. The second element of the header points to method table.

IBM reorganized the state so that an object points to a method table first, 
then a lock word, and then goes a list of instance variable.

I can find some more details if you are interested, especially Paolo.




On Tuesday 04 October 2005 9:26 am, Paolo Molaro wrote:
> > Also, can I assume that the runtime object layout
> > would be similar to windows as described in the msdn
> > document
> > http://msdn.microsoft.com/msdnmag/issues/05/05/JITCompiler/default.aspx.
>
> Currently Mono objects have a two word header, followed by the fields.
> the first word in the header is a MonoVTable pointer. Inside the
> MonoVTable you can find a pointer to the MonoClass describing the
> object. I guess basically all the java, .net etc runtimes have a very
> similar layout as this.
>
> lupus
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic