Rodrigo Kumpera wrote:
>  
> The differences are in areas such as synchronization and thread-local 
> access.
> We can generate more efficient thread-local access code on linux than 
> on windows,
> for example.
Well, aside from whether it is necessary for the majority of allocations 
to use
synchronisation in a modern VM (which I doubt) I think there is little 
reason
why TLS should be materially slower - it doesn't have to use the raw OS 
facility
and can use something closer to what the compilers do with compiler TLS, 
after
all.
>
> Memory allocation and call into native/runtime functions both require 
> fast thread local access.
> So a lot of under the hood code that the runtime needs to generate is 
> faster under linux.
>
>

Sure, but the code we were shown shouldn't be doing native calls, and 
Mono has thread
local allocator support - and that certainly doesn't have problems for 
the JVM on
Windows.  Smells wrong to me.

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to