guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allocation within critical sections


From: Andy Wingo
Subject: Re: allocation within critical sections
Date: Fri, 17 Feb 2012 16:20:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Fri 17 Feb 2012 11:32, Mike Gran <address@hidden> writes:

> - Since memory is low, it calls GC_invoke_finalizers

This doesn't necessarily occur when memory is low -- it occurs when
allocating new objects, and previously the collector decided that some
objects were finalizable.  It doesn't indicate hard times for the GC.

> - which leads to a recursive mutex lock in scm_i_smob_apply_trampoline

Ooooh, good one.  A bug in Guile, this one, and tricky to get around.
Of course, running finalizers in a separate thread will solve it.

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]