[Gd-hackers] Suggested patch for Open Dylan's C runtime
Hannes Mehnert
hannes at mehnert.org
Mon Jul 30 13:58:08 CEST 2007
Hi Bruce,
Bruce Hoult wrote:
> On 7/30/07, Hannes Mehnert <hannes at mehnert.org> wrote:
>> I just commited that patch to the subversion repository. Thanks a lot.
>
> This patch appears to put finalized objects onto a queue for later
> running, rather than running them from within the GC. Good!
>
> BUT .. it does a GC_NEW() from within the finalizer, which is called
> from within the GC. Therefore the GC is entered recursively. This is
> very very bad and will bite you one day and you won't know why.
Oh, that's bad. Have you got a patch around which prevents calling
GC_NEW within the finalizer? ;) I just added your comment to the
specific part of the code.
Hannes
More information about the hackers
mailing list