Rework object size calculation code to use the gc descriptor.
commitcc1dbfefd7dee6bab05eba4c6556c6df46c052c8
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 28 Dec 2011 00:41:39 +0000 (27 22:41 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 28 Dec 2011 00:54:21 +0000 (27 22:54 -0200)
treee59ffe735ae603054b6075f7edd6e69de758ace3
parentf574f7b447e29c6f083fcad4e6dc5f89d3cb4b4d
Rework object size calculation code to use the gc descriptor.

* sgen-gc.h (mono_sgen_par_object_get_size): Use gc_descr
instead of size_descr for size calculation as it's possible
to use it for more than 90% of the cases.

This allows us to kill size_descr from the vtable and retain
the majority of the speedup it brought it.
mono/metadata/sgen-descriptor.c
mono/metadata/sgen-gc.h