[Ecls-list] [RFC PATCH] Fix GC for threads + mprotect signal handling.

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Mon Jun 1 14:41:19 UTC 2009


I have committed my version of the fix with these changes:

* alloc_process() now takes the initial bindings as argument, removing
the need for initialize_process_bindings() and ensuring that the
bindings are copied from the parent thread.

* ecl_import_current_thread() now adds the process to the list in
cl_core, registering the current thread handle and allowing multiple
calls for the same thread.

* Changed the order of libraries to ensure that -lpthread appears
after -lgc Otherwise builds break in FreeBSD

On Mon, Jun 1, 2009 at 4:09 PM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
> On Mon, Jun 1, 2009 at 4:12 PM, Alexander Gavrilov <angavrilov at gmail.com> wrote:
>> Isn't initialize_process_bindings supposed to copy the bindings of
>> the current thread at the time of make-process? If it is, it probably
>> should be left where it was, just modified to assign into initial_bindings
>> instead of the environment.
>
> Good point
>
> Juanjo
>
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
>



-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list