summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-18 08:46:08 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:50 +0400
commit21bb23541f1d64e861645255c2cfdac54a930012 (patch)
treec9ff35b30d4a93b7bd1e0c310be229da64dfe517 /win32_threads.c
parente21c83e60ad428e406ee9172750eee3db656d80f (diff)
downloadbdwgc-21bb23541f1d64e861645255c2cfdac54a930012.tar.gz
2009-10-18 Ivan Maidanski <ivmai@mail.ru>
* backgraph.c (GC_quiet): Remove the declaration (not needed anymore since gc_priv.h is always included). * checksums.c (GC_quiet): Ditto. * gcj_mlc.c (GC_quiet): Ditto. * headers.c (GC_hdr_cache_hits, GC_hdr_cache_misses): Add the comment. * include/private/gc_hdrs.h (GC_hdr_cache_hits, GC_hdr_cache_misses): Ditto. * mark.c (GC_first_nonempty): Make the volatile variable STATIC. * pthread_stop_world.c (GC_stop_count, GC_world_is_stopped): Ditto. * win32_threads.c (GC_please_stop, GC_max_thread_index, GC_mark_mutex_waitcnt): Ditto.
Diffstat (limited to 'win32_threads.c')
-rw-r--r--win32_threads.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win32_threads.c b/win32_threads.c
index cc2b61dc..47b3724a 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -261,7 +261,7 @@ typedef volatile struct GC_Thread_Rep * GC_vthread;
* volatiles. This code should consistently use atomic_ops.
*/
-volatile GC_bool GC_please_stop = FALSE;
+STATIC volatile GC_bool GC_please_stop = FALSE;
/*
* We track thread attachments while the world is supposed to be stopped.
@@ -305,7 +305,7 @@ GC_bool GC_started_thread_while_stopped(void)
/* since we look them up with sequential search. */
volatile struct GC_Thread_Rep dll_thread_table[MAX_THREADS];
-volatile LONG GC_max_thread_index = 0;
+STATIC volatile LONG GC_max_thread_index = 0;
/* Largest index in dll_thread_table */
/* that was ever used. */
@@ -1727,8 +1727,8 @@ void GC_get_next_stack(char *start, char *limit,
/* -1 - locked and waiters may exist. */
/* Accessed by InterlockedExchange(). */
# else
- volatile AO_t GC_mark_mutex_waitcnt = 0; /* Number of waiters + 1; */
- /* 0 - unlocked. */
+ STATIC volatile AO_t GC_mark_mutex_waitcnt = 0;
+ /* Number of waiters + 1; 0 - unlocked. */
# endif
/* #define LOCK_STATS */