bug-guile
[Top][All Lists]
Advanced

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

Re: reentrant port table stuff


From: Chris Cramer
Subject: Re: reentrant port table stuff
Date: Sat, 28 Jul 2001 17:27:26 -0500
User-agent: Mutt/1.2.5i

On Sat, Jul 28, 2001 at 02:43:15PM +0200, Marius Vollmer wrote:
> Hmm, I don't think this is completely right.  I think you can't
> perform `extensive' operations like scm_must_malloc when interrupts
> are disabled.  Could you try to reformulate your patch so that only
> `simple' operations are performed while interrupts are disabled?
> Maybe mallocs.h can help to protect the entry struct until it is
> safely stuffed into the table.

Are there rules written down somewhere for when you should/shouldn't
disable interrupts, and what you should/shouldn't do when they're
disabled?

There are a few other places where scm_must_malloc, scm_must_realloc,
or scm_must_free are called with interrupts disabled.

-- 
C. Ray C. aka Christopher Cramer
address@hidden
http://www.pyro.net/~crayc/



reply via email to

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