summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-19 16:17:03 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:50 +0200
commitf84081f69e577171577ae05e2663d9cbb663720c (patch)
tree670302b2ed4a86a15b8cf972be47c20c88a85ac1 /win32_threads.c
parentf290f196b01ddf5ecd055822c0dea4d625d91872 (diff)
2009-10-19 Ivan Maidanski <ivmai@mail.ru>
* include/private/gc_priv.h (GC_bytes_allocd, GC_objfreelist, GC_aobjfreelist): Replace GC_EXTERN to extern for SEPARATE_GLOBALS case (since they are not defined inside GC at present). * include/private/gc_priv.h (GC_objects_are_marked): Remove the declaration (since made static). * mark.c (GC_objects_are_marked): Define as STATIC. * win32_threads.c (GC_thr_initialized, GC_in_thread_creation): Ditto. * mark.c (GC_N_KINDS_INITIAL_VALUE): New macro (defined and used to initialize GC_n_kinds). * win32_threads.c (start_mark_threads): Adjust the comment.
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 49dc4e9..1ca9d32 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -149,7 +149,7 @@
/* this better. */
typedef LONG * IE_t;
-GC_bool GC_thr_initialized = FALSE;
+STATIC GC_bool GC_thr_initialized = FALSE;
GC_bool GC_need_to_lock = FALSE;
@@ -359,7 +359,8 @@ LONG WINAPI GC_write_fault_handler(struct _EXCEPTION_POINTERS *exc_info);
/* may be called repeatedly. */
#endif
-GC_bool GC_in_thread_creation = FALSE; /* Protected by allocation lock. */
+STATIC GC_bool GC_in_thread_creation = FALSE;
+ /* Protected by allocation lock. */
/*
* This may be called from DllMain, and hence operates under unusual
@@ -1487,8 +1488,7 @@ void GC_get_next_stack(char *start, char *limit,
/* start_mark_threads() is the same as in pthread_support.c except for: */
/* - GC_markers value is adjusted already; */
/* - thread stack is assumed to be large enough; and */
- /* - statistics about the number of marker threads is already printed. */
-
+ /* - statistics about the number of marker threads is printed outside. */
static void start_mark_threads(void)
{
int i;