From 84c483185f85bc574eeea2ae316d25062a02d296 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 15 Jul 2013 15:48:44 +0400 Subject: [PATCH] Mark GC_started_thread_while_stopped() as GC_INNER * mark.c (GC_started_thread_while_stopped): Declare as GC_INNER (declared only if GC_WIN32_THREADS). * win32_threads.c (GC_started_thread_while_stopped): Define as GC_INNER. --- mark.c | 2 +- win32_threads.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mark.c b/mark.c index 4f1ffb76..41de14cc 100644 --- a/mark.c +++ b/mark.c @@ -477,7 +477,7 @@ static void alloc_mark_stack(size_t); # endif /* __GNUC__ && MSWIN32 */ #if defined(GC_WIN32_THREADS) && !defined(__GNUC__) - GC_bool GC_started_thread_while_stopped(void); + GC_INNER GC_bool GC_started_thread_while_stopped(void); /* In win32_threads.c. Did we invalidate mark phase with an */ /* unexpected thread start? */ #endif diff --git a/win32_threads.c b/win32_threads.c index 0431e7e6..32e42ce3 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -278,7 +278,7 @@ typedef volatile struct GC_Thread_Rep * GC_vthread; #if !defined(__GNUC__) /* Return TRUE if an thread was attached since we last asked or */ /* since GC_attached_thread was explicitly reset. */ - GC_bool GC_started_thread_while_stopped(void) + GC_INNER GC_bool GC_started_thread_while_stopped(void) { # ifndef GC_NO_THREADS_DISCOVERY if (GC_win32_dll_threads) { -- 2.40.0