[Mono-devel-list] tls_model ("local-exec")

Ben Maurer 05mauben at hawken.edu
Mon May 24 07:57:48 EDT 2004


Ok, so maybe we can do it by having the initial-exec model? This does not have the additional restrication.

Of course, this means we would have to change the code a bit.

-- Ben

>>> Paolo Molaro <lupus at ximian.com> 05/24/04 05:07 AM >>>
On 05/23/04 Ben Maurer wrote:
>  #ifdef HAVE_KW_THREAD
> -static __thread gpointer mono_lmf_addr;
> +static __thread __attribute__ ((tls_model ("local-exec"))) gpointer mono_lmf_addr;
>  #endif
>   
>  static gpointer
> 
> It seems taht __thread is using some other storage model by default on
> my box. I am running rh9. Should this patch be applied, or is something
> else going on?

local-exec is only valid for executables, so your change looks incorrect.
There is an item in my todo list for a long time: change the build so
that mono is built as a binary with a static libmono built in: this way
we (and gcc) can use more optimizations like the above.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list