Mark GC_started_thread_while_stopped() as GC_INNER
authorIvan Maidanski <ivmai@mail.ru>
Mon, 15 Jul 2013 11:48:44 +0000 (15:48 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 15 Jul 2013 11:48:44 +0000 (15:48 +0400)
* 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
win32_threads.c

diff --git a/mark.c b/mark.c
index 4f1ffb7..41de14c 100644 (file)
--- 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
index 0431e7e..32e42ce 100644 (file)
@@ -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) {