summaryrefslogtreecommitdiff
path: root/mallocx.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-01 21:13:37 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:49 +0400
commit72afdc7d797d58f34c808235555d3e32b14cbad4 (patch)
treed2b2de9a048d21cd25e0434b4b839075e4a8fceb /mallocx.c
parent329303eed766f3a29505142681bf3c9bfc6c7d2d (diff)
downloadbdwgc-72afdc7d797d58f34c808235555d3e32b14cbad4.tar.gz
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 'mallocx.c')
-rw-r--r--mallocx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mallocx.c b/mallocx.c
index f46395c1..5d040811 100644
--- a/mallocx.c
+++ b/mallocx.c
@@ -234,7 +234,8 @@ GC_API void GC_CALL GC_incr_bytes_freed(size_t n)
#if defined(THREADS)
-signed_word GC_bytes_found; /* protected by GC lock; defined in reclaim.c */
+extern signed_word GC_bytes_found;
+ /* protected by GC lock; defined in reclaim.c. */
#ifdef PARALLEL_MARK
volatile signed_word GC_bytes_allocd_tmp = 0;