[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fluids
From: |
Andy Wingo |
Subject: |
Re: Fluids |
Date: |
Wed, 03 Mar 2010 13:29:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
On Wed 03 Mar 2010 00:52, address@hidden (Ludovic Courtès) writes:
> address@hidden (Ludovic Courtès) writes:
>
>> Andy Wingo <address@hidden> writes:
>>
>>> But you can't / shouldn't make a new fluid every time you enter a
>>> `catch', because currently fluids are never garbage collected! We really
>>> need to fix this. I think it's a 1.9 regression.
>>
>> Indeed. We should use a weak vector or some such instead of the current
>> scm_gc_malloc’d array.
>
> Just to clarify: fluids themselves *are* GC’d, but fluid numbers aren’t
> recycled so ALLOCATED_FLUIDS grows endlessly (1 byte per fluid).
One word per make-fluid, per thread, right?
FWIW I don't need fluids to be gc'd any more, though it probably is a
good idea.
A
--
http://wingolog.org/
- Re: Fluids, Ludovic Courtès, 2010/03/02
- Re: Fluids,
Andy Wingo <=