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

User [email protected] added comment
https://bugzilla.novell.com/show_bug.cgi?id=463323#c20





--- Comment #20 from Jan Oravec <[email protected]>  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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to