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: Thu, 16 Feb 2012 23:27:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Thu 16 Feb 2012 22:30, address@hidden (Ludovic Courtès) writes:

> Can you explain what happens here?  Is it a deadlock?  What’s at
> ports.c:575?

It was a deadlock, but I fixed it.  It was something that locked all
weak sets, but while doing so allocated memory.  Allocating memory ran
finalizers which tried to manipulate the port set, but that lock was
already taken: deadlock.

The solution will be to run finalizers in a separate thread, as the JVM
does.

Andy
-- 
http://wingolog.org/



reply via email to

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