From 2e3ca6101599fa34d54ec4c8f9c96d40a34063f1 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Tue, 30 Oct 2012 22:50:12 +0100 Subject: [PATCH] We have to inform the library that we want to register threads --- src/c/alloc_2.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/c/alloc_2.d b/src/c/alloc_2.d index 5e2f9264f..29c0079a0 100644 --- a/src/c/alloc_2.d +++ b/src/c/alloc_2.d @@ -787,6 +787,9 @@ init_alloc(void) GC_all_interior_pointers = 0; GC_time_limit = GC_TIME_UNLIMITED; GC_init(); +#ifdef ECL_THREADS + GC_allow_register_threads(); +#endif if (ecl_option_values[ECL_OPT_INCREMENTAL_GC]) { GC_enable_incremental(); }