From c7047ca9e961af21c6a520a0765d1226ab510377 Mon Sep 17 00:00:00 2001 From: ivmai Date: Fri, 5 Mar 2010 14:26:16 +0000 Subject: 2010-03-05 Ivan Maidanski * alloc.c (GC_set_stop_func, GC_get_stop_func): Add DCL_LOCK_STATE. * finalize.c (GC_notify_or_invoke_finalizers): Ditto. * gc_dlopen.c (disable_gc_for_dlopen): Ditto. * gcj_mlc.c (maybe_finalize, GC_debug_gcj_malloc): Ditto. * mark.c (GC_print_trace): Ditto. * misc.c (GC_set_warn_proc, GC_get_warn_proc, GC_enable, GC_disable, GC_new_free_list, GC_new_kind, GC_new_proc, GC_set_oom_fn, GC_get_oom_fn, GC_set_finalizer_notifier, GC_get_finalizer_notifier): Ditto. * os_dep.c (GC_get_stack_base, GC_print_callers): Ditto. * pthread_support.c (GC_is_thread_tsd_valid, GC_wait_for_gc_completion, GC_init_parallel, GC_do_blocking_inner, GC_call_with_gc_active, GC_unregister_my_thread, pthread_join, pthread_detach, GC_register_my_thread, GC_inner_start_routine, pthread_create): Ditto. * reclaim.c (GC_print_all_errors): Ditto. * win32_threads.c (GC_is_thread_tsd_valid, GC_register_my_thread, GC_unregister_my_thread, GC_do_blocking_inner, GC_call_with_gc_active, GC_lookup_pthread, GC_pthread_join, GC_pthread_start_inner, GC_thread_exit_proc, GC_pthread_detach, GC_init_parallel): Ditto. --- gc_dlopen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gc_dlopen.c') diff --git a/gc_dlopen.c b/gc_dlopen.c index 3e0b1a39..268cd7ca 100644 --- a/gc_dlopen.c +++ b/gc_dlopen.c @@ -50,6 +50,7 @@ /* But I don't know of a better solution. */ static void disable_gc_for_dlopen(void) { + DCL_LOCK_STATE; LOCK(); while (GC_incremental && GC_collection_in_progress()) { GC_collect_a_little_inner(1000); -- cgit v1.2.1