[Mono-dev] (Delegate) Trampoline executed twice?
Martin Däumler
mdae at cs.tu-chemnitz.de
Tue Dec 7 02:52:23 EST 2010
On 06.12.10 06:29 pm, mabra at manfbraun.de wrote:
> That's a problem of your code:You first create a ThreadStart
> delegate and execute it via "Invoke" [!!!!!] and the you start
> the thread, which run the same code!! Do you see? Why do you
> do call the invoke method on the thread start delegate, please?
Hello,
I should have mentioned that this is an uncommon example.
I expected a delegate trampoline to be executed only once
like "common" JIT trampolines for a single call instruction.
However, it might be executed twice.
So, there might be other types of trampolines that might
be executed twice in that way?
With kind regards,
Martin Däumler
More information about the Mono-devel-list
mailing list