[Mono-bugs] [Bug 415577] [PATCH] Can't pass by ref in a ContextBoundObject method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 3 20:25:21 EDT 2008


User robertj at gmx.net added comment

Robert Jordan <robertj at gmx.net> changed:

           What    |Removed                                         |Added
                 CC|                                                |robertj at gmx.net
            Summary|Can't pass by ref in a ContextBoundObject method|[PATCH] Can't pass by ref in a
                   |                                                |ContextBoundObject method

--- Comment #2 from Robert Jordan <robertj at gmx.net>  2008-09-03 18:25:20 MDT ---
If someone could tell me how to check klass->contextbound in managed code, the
new icall won't be necessary.

/* this->remote_class->proxy_class->contextbound */

mono_mb_emit_ldarg (mb, 0);
mono_mb_emit_ldflda (mb, G_STRUCT_OFFSET (MonoTransparentProxy, remote_class));
mono_mb_emit_byte (mb, CEE_LDIND_REF);
mono_mb_emit_ldflda (mb, G_STRUCT_OFFSET (MonoRemoteClass, proxy_class));
mono_mb_emit_byte (mb, CEE_LDIND_REF);
mono_mb_emit_ldflda (mb, G_STRUCT_OFFSET (MonoClass, contextbound));
mono_mb_emit_byte (mb, CEE_LDIND_I4);

Since MonoClass.contextbound is a bitfield, I don't know how to test it

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