[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH]: deadlock in make_struct()
From: |
Han-Wen Nienhuys |
Subject: |
Re: [PATCH]: deadlock in make_struct() |
Date: |
Wed, 19 Nov 2008 10:21:44 -0200 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080723) |
Linas Vepstas escreveu:
> 2008/11/17 Andy Wingo <address@hidden>:
>> Hi Linas,
>>
>> I was about to write about how your patch looked incorrect to me,
>> because GC could see a half-initialized struct (and potentially sweep
>> it, with a bad free function);
>
> Well, I tried to think that through. I tried to find a need for a
> "remember_up_to_here", but it didn't look like the code
> needed it -- it seemed like everything was on stack or
> in registers, and so would be safe from accidental GC.
Our GC is lazy; if a function momentarily drops a reference, you´d have to
have 2 GCs within the same function body to see bad effects.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen