[Mono-dev] System.Threading.Monitor::Exit fails in latest trees

Martin Daeumler mdae at cs.tu-chemnitz.de
Tue May 3 09:29:52 EDT 2011


Zoltan Varga wrote:
> 
> Hi,
> 
>   Those trampolines are in tramp-<ARCH>.c, they are called
> monitor_enter/exit_trampoline ().
> 

Hello,

thank you very much! That is interessting so I have
additional questions. The switch-case block in
"mono_get_trampoline_func()" in mini-trampolines.c
tells me which trampoline type calls which C-function.

Q1: Besides the monitor enter/exit trampolines, there
are other trampoline types which might not end up
in a C-function (and use, for example, optimized code
instead)?

Q2: Do unbox trampolines do any kind of patching, i.e.,
modifying native code? As I understood, unbox trampolines
are only needed when a method of a value type is going to
be called but the instance of the value is boxed (e.g., casted
to object in C#). And unbox trampolines are only handled/
inserted by the magic trampoline. Do I understand it correct?


With kind regards,
Martin Däumler

--
View this message in context: http://mono.1490590.n4.nabble.com/System-Threading-Monitor-Exit-fails-in-latest-trees-tp1578116p3492472.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list