summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-18 12:47:44 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:50 +0200
commit7098159ca940cd2ff75233857c13dc5054f8d6d9 (patch)
tree92721b5ce5fc9e4191f3adb45c574631a282e293 /win32_threads.c
parent21bb23541f1d64e861645255c2cfdac54a930012 (diff)
2009-10-18 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c (GC_fail_count, GC_large_alloc_warn_interval): Move the variable declaration to gc_priv.h. * alloc.c (GC_bytes_found, GC_unmap_threshold, GC_force_unmap_on_gcollect): Ditto. * dyn_load.c (GC_no_win32_dlls, GC_wnt): Ditto. * finalize.c (GC_fail_count): Ditto. * include/private/gc_locks.h (GC_allocate_ml, GC_lock_holder, GC_collecting, GC_mark_lock_holder, GC_need_to_lock): Ditto. * include/private/gc_pmark.h (GC_n_mark_procs, GC_mark_stack_size, GC_mark_stack_limit, GC_mark_stack_top, GC_mark_stack, GC_mark_stack_too_small, GC_mark_state): Ditto. * include/private/pthread_support.h (GC_threads, GC_thr_initialized, GC_in_thread_creation): Ditto. * mallocx.c (GC_bytes_found): Ditto. * mark_rts.c (GC_save_regs_ret_val, GC_world_stopped): Ditto. * misc.c (GC_unmap_threshold): Ditto. * os_dep.c (GC_unmap_threshold): Ditto. * pthread_support.c (GC_markers): Ditto. * thread_local_alloc.c (GC_gcjobjfreelist, GC_gcj_malloc_initialized, GC_gcj_kind): Ditto. * win32_threads.c (GC_fault_handler_lock, GC_write_cs, GC_dont_query_stack_min, GC_markers, GC_wnt): Ditto. * include/private/gc_priv.h (GC_EXTERN): New macro (used mostly as a tag for now); defined after "gcconfig.h" inclusion. * include/private/gc_priv.h: Use GC_EXTERN instead of "extern" keyword for most global variables. * alloc.c (GC_copyright): Add the comment about the symbol visibility. * finalize.c (GC_fo_entries): Ditto. * include/private/gc_priv.h (GC_print_stats): Ditto. * misc.c (GC_quiet): Ditto. * mallocx.c (GC_bytes_allocd_tmp): Make the volatile variable STATIC. * pthread_support.c (GC_threads): Add explicit zero initializer (to make the variable definition differ from the declaration).
Diffstat (limited to 'win32_threads.c')
-rw-r--r--win32_threads.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 47b3724..49dc4e9 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -918,7 +918,6 @@ void GC_push_thread_structures(void)
#if defined(MPROTECT_VDB)
# include "atomic_ops.h"
- extern volatile AO_TS_t GC_fault_handler_lock; /* defined in os_dep.c */
#endif
/* Suspend the given thread, if it's still active. */
@@ -970,10 +969,6 @@ STATIC void GC_suspend(GC_thread t)
# endif
}
-#ifndef CYGWIN32
- extern CRITICAL_SECTION GC_write_cs; /* defined in misc.c */
-#endif
-
void GC_stop_world(void)
{
DWORD thread_id = GetCurrentThreadId();
@@ -1072,9 +1067,6 @@ void GC_start_world(void)
}
#ifdef MSWINCE
- extern GC_bool GC_dont_query_stack_min;
- /* Defined and set in os_dep.c. */
-
/* The VirtualQuery calls below won't work properly on some old WinCE */
/* versions, but since each stack is restricted to an aligned 64 KiB */
/* region of virtual memory we can just take the next lowest multiple */
@@ -1322,11 +1314,6 @@ void GC_push_all_stacks(void)
# define MAX_MARKERS 16
# endif
- extern long GC_markers;
- /* Number of mark threads we would like to */
- /* have. Includes the initiating thread. */
- /* Defined in mark.c. */
-
static ptr_t marker_sp[MAX_MARKERS - 1]; /* The cold end of the stack */
/* for markers. */
# ifdef IA64
@@ -1935,10 +1922,6 @@ void GC_get_next_stack(char *start, char *limit,
# endif /* !DONT_USE_SIGNALANDWAIT */
-# ifndef MSWINCE
- extern GC_bool GC_wnt; /* defined in os_dep.c */
-# endif
-
# endif /* ! GC_PTHREADS_PARAMARK */
#endif /* PARALLEL_MARK */