[Mono-devel-list] implementing the synchronized method a

dietmar dietmar at ximian.com
Mon Apr 14 06:37:51 EDT 2003


On Mon, 2003-04-14 at 12:20, Varga Zoltan wrote:
>   I would love to do this, but my original question remains:
> where to
> substitute the original method with the wrapper? The only
> place I could
> find was in arch_create_jit_trampoline(). Is it ok to put
> such code in 
> there?

I think there are several locations: one is in method_to_ir
(CALL/CALLVIRT opcode). We do the same thing for pinvoke wrappers there.
You also need to add that special case in mono_jit_compile_method(). The
third location is in tramp-XYZ.c. Maybe its possible to factor out that
code to avoid code duplication (grep mono_marshal_get_native_wrapper
*.c).

- Dietmar




More information about the Mono-devel-list mailing list