[Mono-bugs] [Bug 463323] Bug with delegates to dynamic methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 15 15:14:54 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=463323

User jan.oravec at 6com.sk added comment
https://bugzilla.novell.com/show_bug.cgi?id=463323#c20





--- Comment #20 from Jan Oravec <jan.oravec at 6com.sk>  2009-02-15 13:14:51 MST ---
Just noticed - it's not cached by method->signature pointer, but by address of
method->signature.

I think there are more things to get fixed:

Is assembly unloading supported? If yes, these can fail:

mono_assembly_get_object (MonoDomain *domain, MonoAssembly *assembly)
        CHECK_OBJECT (MonoReflectionAssembly *, assembly, NULL);
mono_module_get_object   (MonoDomain *domain, MonoImage *image)
        CHECK_OBJECT (MonoReflectionModule *, image, NULL);

This will fail when method is freed:

mono_method_get_object (MonoDomain *domain, MonoMethod *method, MonoClass
*refclass)
        CHECK_OBJECT (MonoReflectionMethod *, method, refclass);
mono_method_body_get_object (MonoDomain *domain, MonoMethod *method)
        CHECK_OBJECT (MonoReflectionMethodBody *, method, NULL);
mono_param_get_objects (MonoDomain *domain, MonoMethod *method)
        CHECK_OBJECT (MonoArray*, &(method->signature), NULL);


This will fail if class is freed:

mono_field_get_object (MonoDomain *domain, MonoClass *klass, MonoClassField
*field)
        CHECK_OBJECT (MonoReflectionField *, field, klass);
mono_property_get_object (MonoDomain *domain, MonoClass *klass, MonoProperty
*property)
        CHECK_OBJECT (MonoReflectionProperty *, property, klass);
mono_event_get_object (MonoDomain *domain, MonoClass *klass, MonoEvent *event)
        CHECK_OBJECT (MonoReflectionEvent *, event, klass);

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list