guile-devel
[Top][All Lists]
Advanced

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

Re: port-for-each vs lazy sweep


From: Kevin Ryde
Subject: Re: port-for-each vs lazy sweep
Date: Tue, 21 Aug 2007 10:30:24 +1000
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

address@hidden (Ludovic Courtès) writes:
>
> In the latter case, GC would modify the port table, potentially beneath
> the feet of functions that iterate over it, or that cached indices
> within the table, things like that.

I think you're meant to hold scm_i_port_table_mutex if looking at or
modifying the table.  Probably have to make sure not to provoke a gc
during that, something I think flush-all doesn't ensure.  (Maybe ought
to rewrite flush-all in terms of port-for-each.)




reply via email to

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