Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2012-07-17 20:51:12 +0400
committerZoltan Varga <vargaz@gmail.com>2012-07-17 20:51:25 +0400
commit42f91a86304787014c868f0a1b57237d6bb41350 (patch)
tree948b7c2384bc7645875fb8570c7b59656d30f781 /libgc/pthread_support.c
parent65f7004927482ca6696aaea4cd219130aa8a68db (diff)
Move some declarations out of a #ifdef in pthread_support.c to fix platforms without thread local alloc.
Diffstat (limited to 'libgc/pthread_support.c')
-rw-r--r--libgc/pthread_support.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgc/pthread_support.c b/libgc/pthread_support.c
index 75c9009d0f1..bc31c9733a7 100644
--- a/libgc/pthread_support.c
+++ b/libgc/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