summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-01 23:13:37 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:49 +0200
commit72afdc7d797d58f34c808235555d3e32b14cbad4 (patch)
treed2b2de9a048d21cd25e0434b4b839075e4a8fceb /allchblk.c
parent329303eed766f3a29505142681bf3c9bfc6c7d2d (diff)
2009-10-01 Ivan Maidanski <ivmai@mail.ru> (really mostly Andreas Tobler)
* allchblk.c (GC_fail_count, GC_large_alloc_warn_interval): Add "extern" keyword to a global variable declaration (some compilers require it). * 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_hdrs.h (GC_hdr_cache_hits, GC_hdr_cache_misses): 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, GC_old_allocator): 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.
Diffstat (limited to 'allchblk.c')
-rw-r--r--allchblk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/allchblk.c b/allchblk.c
index 6446ade..70ce161 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -628,9 +628,9 @@ GC_allochblk(size_t sz, int kind, unsigned flags/* IGNORE_OFF_PAGE or 0 */)
return 0;
}
-unsigned GC_fail_count; /* defined in alloc.c */
+extern unsigned GC_fail_count; /* defined in alloc.c */
-long GC_large_alloc_warn_interval; /* defined in misc.c */
+extern long GC_large_alloc_warn_interval; /* defined in misc.c */
STATIC long GC_large_alloc_warn_suppressed = 0;
/* Number of warnings suppressed so far. */