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

Ben Maurer bmaurer at users.sourceforge.net
Sun May 23 17:15:22 EDT 2004


Hello,

To make the MONO_NPTL env variable do anything on my computer, I had to
apply the following patch:

Index: mini-x86.c
===================================================================
RCS file: /cvs/public/mono/mono/mini/mini-x86.c,v
retrieving revision 1.98
diff -u -r1.98 mini-x86.c
--- mini-x86.c  19 May 2004 13:17:05 -0000      1.98
+++ mini-x86.c  23 May 2004 20:28:29 -0000
@@ -3616,7 +3616,7 @@
 static gboolean tls_offset_inited = FALSE;
  
 #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?

-- Ben




More information about the Mono-devel-list mailing list