2010-03-01 Zoltan Varga <vargaz@gmail.com>
* class-internals.h (MonoClass): Get rid of the reflection_info field, add
a GC handle instead. This is a bit slower to access, but avoids burdening the
GC with 100s of individual roots.
* reflection.c (mono_class_get_ref_info):
(mono_class_set_ref_info):
(mono_class_free_ref_info): New internal helper fuctions.
* reflection.c appdomain.c icall.c class.c: Use the new helper functions instead
of accessing klass->reflection_info directly.
* sgen-gc.c (alloc_complex_descriptor): Fix the computation of the number of
words.
* gc.c (alloc_handle): Create a GC descriptor for the 'entries' array, free
the previous array.
git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mono@152649 e3ebcda4-bce8-0310-ba0a-eca2169e7518