summaryrefslogtreecommitdiff
path: root/misc.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 /misc.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 'misc.c')
-rw-r--r--misc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/misc.c b/misc.c
index d7bb80d..d808dbb 100644
--- a/misc.c
+++ b/misc.c
@@ -83,7 +83,7 @@ GC_bool GC_dont_gc = 0;
GC_bool GC_dont_precollect = 0;
-GC_bool GC_quiet = 0;
+GC_bool GC_quiet = 0; /* used also in pcr_interface.c */
#ifndef SMALL_CONFIG
GC_bool GC_print_stats = 0;
@@ -508,10 +508,6 @@ static void maybe_install_looping_handler(void)
void GC_thr_init(void);
#endif
-#ifdef USE_MUNMAP
- extern int GC_unmap_threshold; /* defined in allchblk.c */
-#endif
-
#ifdef LINT
int GC_read(void);
void GC_register_finalizer_no_order(void);