[Mono-list] Re: Questions in Interop

Marcus mathpup at mylinuxisp.com
Wed Oct 5 00:55:31 EDT 2005


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


More information about the Mono-list mailing list