From: Paolo Molaro Date: Thu, 7 Jul 2005 10:01:22 +0000 (+0000) Subject: Thu Jul 7 11:59:42 CEST 2005 Paolo Molaro X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=222a6c7df89ed9462ba41a490eaa94a5922c5d4c;p=gc Thu Jul 7 11:59:42 CEST 2005 Paolo Molaro * pthread_support.c, Makefile.am: make the __thread var use fast access if available (and avoid dlopen issue, bug #75390). svn path=/trunk/mono/; revision=47031 --- diff --git a/ChangeLog b/ChangeLog index 80702c4e..9580b2f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ + +Thu Jul 7 11:59:42 CEST 2005 Paolo Molaro + + * pthread_support.c, Makefile.am: make the __thread var use + fast access if available (and avoid dlopen issue, bug #75390). + 2005-07-05 Ben Maurer * pthread_stop_world.c (pthread_start_world, _GC_suspend_handler): diff --git a/Makefile.am b/Makefile.am index 3df9aee1..a00e1745 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,14 @@ AUTOMAKE_OPTIONS = foreign SUBDIRS = include doc -noinst_LTLIBRARIES = libmonogc.la +INCLUDES=-I$(top_srcdir)/.. + +# +# libtool is not capable of creating shared/static versions of a convenience +# library, so we have to do it ourselves +# + +noinst_LTLIBRARIES = libmonogc.la libmonogc-static.la EXTRA_DIST = ## more items will be succesively added below diff --git a/pthread_support.c b/pthread_support.c index 33101ccd..5331b174 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -168,8 +168,17 @@ void GC_init_parallel(); /* We don't really support thread-local allocation with DBG_HDRS_ALL */ +/* work around a dlopen issue (bug #75390), undefs to avoid warnings with redefinitions */ +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_VERSION +#include "mono/utils/mono-compiler.h" + +static #ifdef USE_COMPILER_TLS - __thread + __thread MONO_TLS_FAST #endif GC_key_t GC_thread_key;