]> granicus.if.org Git - gc/commitdiff
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 4f1ffb76cd6b0f05691fc54e9cb7034b97901e9e..41de14cc0959ac5cfe55acd385dccdb41b6e6c92 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 0431e7e64336126237103aef15c9549f75dad822..32e42ce3396905af639f2fa89dccc364ccc2678e 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) {