[Mono-dev] (Delegate) Trampoline executed twice?
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?
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,
More information about the Mono-devel-list