[Ecls-list] compile error of git with --enable-threads

gas gas.hale at gmail.com
Wed Feb 18 16:00:50 UTC 2009


Hi,
there is an error when --enable-threads is used.
During the initializzation of the threads "init_threads(cl_env_ptr
env)" it is required the allocation of an object of type "t_process":
    process = ecl_alloc_object(t_process);
"ecl_alloc_object" disables the interrups:
    ecl_disable_interrupts_env(the_env);
for the current environment "the_env" that is nil. I brutally fix it with:
        if(the_env!=NULL)
            ecl_disable_interrupts_env(the_env);
        obj = (cl_object)GC_MALLOC(type_size[t]);
        if(the_env!=NULL)
            ecl_enable_interrupts_env(the_env);

Regards,
Gas

-- 
The basic tool for the manipulation of reality is the manipulation of
words. If you can control the meaning of words, you can control the
people who must use the words.
                   How To Build A Universe That Doesn't Fall Apart Two
Days Later
                   Philip K. Dick




More information about the ecl-devel mailing list