[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about symbol_free_list
From: |
Stefan Monnier |
Subject: |
Re: Question about symbol_free_list |
Date: |
Fri, 30 Dec 2011 06:41:05 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> When reading the gc_sweep(), I found symbol_free_list is set to NULL
> everytime garbage collector kicks in. My understanding of this variable
> is it holds up some free symbols and when Emacs is asked to allocate a
> symbol object, it will first look into this list to see if there is one
> available. It serves as kinda 'buffer'. My question is if
> symbol_free_list is not empty when gc_sweep sets it to NULL, how about
> the symbol objects in the list ? Where happened to them ?
IIRC the gc_sweep will traverse all blocks of symbols and will hence
find all the free symbols (both those that were already free before and
those that were discovered by the GC).
Stefan