summaryrefslogtreecommitdiff
path: root/thread_local_alloc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-18 10:47:44 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:50 +0400
commit7098159ca940cd2ff75233857c13dc5054f8d6d9 (patch)
tree92721b5ce5fc9e4191f3adb45c574631a282e293 /thread_local_alloc.c
parent21bb23541f1d64e861645255c2cfdac54a930012 (diff)
downloadbdwgc-7098159ca940cd2ff75233857c13dc5054f8d6d9.tar.gz
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 'thread_local_alloc.c')
-rw-r--r--thread_local_alloc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/thread_local_alloc.c b/thread_local_alloc.c
index 3a145cd5..4ef17696 100644
--- a/thread_local_alloc.c
+++ b/thread_local_alloc.c
@@ -110,10 +110,6 @@ void GC_init_thread_local(GC_tlfs p)
# endif
}
-#ifdef GC_GCJ_SUPPORT
- extern ptr_t * GC_gcjobjfreelist; /* defined in gcj_mlc.c. */
-#endif
-
/* We hold the allocator lock. */
void GC_destroy_thread_local(GC_tlfs p)
{
@@ -207,12 +203,6 @@ GC_API void * GC_CALL GC_malloc_atomic(size_t bytes)
#include "include/gc_gcj.h"
-#ifdef GC_ASSERTIONS
- extern GC_bool GC_gcj_malloc_initialized; /* defined in gcj_mlc.c. */
-#endif
-
-extern int GC_gcj_kind; /* defined in gcj_mlc.c. */
-
/* Gcj-style allocation without locks is extremely tricky. The */
/* fundamental issue is that we may end up marking a free list, which */
/* has freelist links instead of "vtable" pointers. That is usually */