Permalink
Browse files

2005-12-14 Zoltan Varga <vargaz@gmail.com>

	* object.c (mono_class_create_runtime_vtable): Call 
	mono_class_setup_vtable ().

	* reflection.c (mono_reflection_get_dynamic_overrides): New helper
	function.
	(ensure_runtime_vtable): Initialize the generic vtable lazily. Fixes
	#76959.

svn path=/trunk/mono/; revision=54372
  • Loading branch information...
1 parent bd93d7a commit f63dd3f54ef855253eef6507eb4195e010c7e9d9 @vargaz vargaz committed Dec 14, 2005
Showing with 4 additions and 0 deletions.
  1. +2 −0 mono/metadata/icall.c
  2. +2 −0 mono/metadata/object-internals.h
View
@@ -3007,6 +3007,8 @@ ves_icall_Type_GetMethodsByName (MonoReflectionType *type, MonoString *name, gui
compare_func = (ignore_case) ? g_strcasecmp : strcmp;
}
+ mono_class_setup_vtable (klass);
+
if (klass->vtable_size >= sizeof (method_slots_default) * 8) {
method_slots = g_new0 (guint32, klass->vtable_size / 32 + 1);
} else {
@@ -1026,6 +1026,8 @@ void mono_reflection_create_generic_class (MonoReflectionTypeBuilder *tb
MonoReflectionType* mono_reflection_create_runtime_class (MonoReflectionTypeBuilder *tb);
+void mono_reflection_get_dynamic_overrides (MonoClass *klass, MonoMethod ***overrides, int *num_overrides);
+
void mono_reflection_create_dynamic_method (MonoReflectionDynamicMethod *m);
void mono_reflection_initialize_generic_parameter (MonoReflectionGenericParam *gparam);

0 comments on commit f63dd3f

Please sign in to comment.