From c26dab81d92c5864f7e67d432ba16ae30af7124a Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 17 Jul 2012 18:51:12 +0200 Subject: [PATCH] Move some declarations out of a #ifdef in pthread_support.c to fix platforms without thread local alloc. --- pthread_support.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pthread_support.c b/pthread_support.c index 75c9009d..bc31c973 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -183,6 +183,10 @@ static GC_bool parallel_initialized = FALSE; void GC_init_parallel(); +static pthread_t main_pthread_self; +static void *main_stack, *main_altstack; +static int main_stack_size, main_altstack_size; + # if defined(THREAD_LOCAL_ALLOC) && !defined(DBG_HDRS_ALL) /* We don't really support thread-local allocation with DBG_HDRS_ALL */ @@ -216,10 +220,6 @@ static int GC_setspecific (GC_key_t key, void *value) { static GC_bool keys_initialized; -static pthread_t main_pthread_self; -static void *main_stack, *main_altstack; -static int main_stack_size, main_altstack_size; - #ifdef MONO_DEBUGGER_SUPPORTED #include "include/libgc-mono-debugger.h" #endif -- 2.40.0