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

Varga Zoltan vargaz at freemail.hu
Sat Apr 12 16:43:20 EDT 2003


                                          Hi,

  I would like to implement the 'synchronized' method
attribute in the
runtime. I thought about using the wrapper facility for
this, i.e. creating
a synchronized wrapper for the method which would call the
non-synchronized version. Is this a good idea?
One thing I would like to know is where I should substitute
the original
method with the wrapper? If I do it in the compiler, for
example in
mono_jit_compile_method, then the wrapper method ends up calling
itself, leading to an infinite loop.

                                bye

                                    Zoltan





More information about the Mono-devel-list mailing list