[Ecls-list] Possible fix to windows threads (please confirm)

Kamil Shakirov kamils80 at gmail.com
Sat May 24 18:01:02 UTC 2008

Hi Juan,

After applying your bug fix threaded ECL builds successfully but ECL 
still crashes when started.

diff --git a/src/c/alloc_2.d b/src/c/alloc_2.d
index 73e471d..06ca937 100644
--- a/src/c/alloc_2.d
+++ b/src/c/alloc_2.d
@@ -190,9 +190,9 @@ init_alloc(void)
        alloc_initialized = TRUE;

        GC_no_dls = 1;
-       GC_register_displacement(1);
        GC_all_interior_pointers = 0;
+       GC_register_displacement(1);
 #if 0


Juan Jose Garcia-Ripoll wrote:
> Hi guys,
> I could use a windows computer today for a little time, enough to find
> a bug in ecl/src/c/alloc_2.d. Namely, GC_register_displacement() is
> called before GC_init(). That affects only the windows port and only
> with threads, but seems GC_reg* is to be called only _after_
> GC_init(). Could you try changing this and see whether this fixes the
> build? For me it did the job.
> Juanjo

More information about the ecl-devel mailing list