[Mono-bugs] [Bug 386415] [PATCH] Implementation of mono_method_get_unmanaged_thunk

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat May 3 10:30:39 EDT 2008


User robertj at gmx.net added comment

--- Comment #4 from Robert Jordan <robertj at gmx.net>  2008-05-03 08:30:38 MST ---
Grr, sorry for the bug spam. My keyboard went out of batteries and was starting
pressing random keys :-)

A footnote on mono_marshal_get_thunk_invoke_wrapper ():
it is generating unverifiable code:

static result_type wrapper_for_method_foo (some arg, out Exception ex)
    result_type res;
    ex = null;

    try {
        res = foo (arg);
    } catch (Exception e) {
        ex = e;
    return res; // <-- res might be unitialized

The unverifiable code does not harm since unmanaged code must
not rely on "res" being initialized. The same for "out" args.

I can, of course. fix this, but is it really necessary?

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