Remove the data field from MonoVTable to reduce memory usage.
authorPaolo Molaro <lupus@oddwiz.org>
Fri, 10 Jun 2011 13:08:33 +0000 (15:08 +0200)
committerPaolo Molaro <lupus@oddwiz.org>
Mon, 27 Jun 2011 14:04:32 +0000 (16:04 +0200)
commit0e31cd4e854a175cfb05f3220642075f9e87d7c3
tree70cf8f2e99edacd134fa5a4e4ca39f399f452acb
parent260177c0347d8eef68649d32553c7d370084f4db
Remove the data field from MonoVTable to reduce memory usage.

We now store a pointer to the static fields area of a type at the
end of the vtable array only when needed, so we save memory for all
the types that have no static fields.
All the direct accesses to the field have been changed to use the
already existing function accessor.
mono/metadata/appdomain.c
mono/metadata/class-internals.h
mono/metadata/debug-helpers.c
mono/metadata/mono-debug-debugger.h
mono/metadata/object-internals.h
mono/metadata/object.c
mono/mini/jit-icalls.c
mono/mini/method-to-ir.c
mono/mini/mini-generic-sharing.c
mono/mini/mini.c