[Mono-devel-list] about Metada

Fernando Diaz fdiaz at igalia.com
Mon Aug 4 05:01:08 EDT 2003

El jue, 24 de 07 de 2003 a las 14:35, Paolo Molaro escribió:

> MonoClassField is just a runtime representation of the metadata for
> field, it doesn't contain the data directly.
> Static fields are stored in MonoVTable->data.
> Instance fields are allocated in the objects after the object header:
> -----		<----- start of object
> vtable 		<----- pointer for MonoVTable for the object's class
> syncblock	<----- lock/unlock support
> first field
> second field
> ...
> lupus

I have the Class Prueba with three atributes, the source code is:

class Prueba{
	private string texto;
	private Prueba puntero;	
        private int entero;
        public Prueba(string texto,Prueba puntero,int entero){

If i examine the memory to look for this atributes (it would be after de
object header) i get this (look the picture). The data isn't after the
object header and the data isn't static.


Regards. Fernando Díaz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: memory.png
Type: image/png
Size: 53543 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030804/ad170203/attachment.png 

More information about the Mono-devel-list mailing list