[Mono-bugs] [Bug 386415] [PATCH] Implementation of mono_method_get_unmanaged_thunk
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon May 5 11:42:05 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=386415
User robertj at gmx.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=386415#c22
--- Comment #22 from Robert Jordan <robertj at gmx.net> 2008-05-05 09:42:05 MST ---
Do you mean with "only supporting valuetype returns by boxing" changing the
wrapper such that it expects boxed valuetypes wherever the managed signature
is expecting a by value parameter?
Something like that:
void Method (Struct a)
gets wrapped as
void Method_wrapper (object a)
{
Method ((Struct) a);
}
and it is expected to be called as
void (*method)(MonoObject*, MonoException**)
I'd like to implement this.
One last question, I hope :-) Currently I'm using the NATIVE_TO_MANAGED wrapper
type because I thought it'd make sense to have the automatic appdomain switch
and thread attach support of this wrapper. But embedding apps already have
enough control over mono. They could manually attach to threads and push
the desired appdomain.
Is it worthwhile to save the costs of these checks and introduce a new
wrapper type for thunk-invoke?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list