chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] make symbol-GC more reliable


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] make symbol-GC more reliable
Date: Sun, 4 Nov 2012 14:24:35 +0100
User-agent: Mutt/1.4.2.3i

On Fri, Nov 02, 2012 at 09:29:55PM +0100, Felix wrote:
> From: Felix <address@hidden>
> Subject: [PATCH] make symbol-GC more reliable
> Date: Fri, 02 Nov 2012 10:57:06 +0100 (CET)
> 
> > This patch tries to fix the currently unreliable garbage collection
> > of unused symbols ("-:w" runtime option):
> 
> Wait - here is a better variant.

After applying this patch, the symbol GC test prints

starting with 1525 symbols
interning 10000 symbols ...
recovering ...
7923 7037 6265 5591 4999 4482 4032 3635 3276 3276 2947 2642 2374 2137 1906 1716 
1535 1368 1217 1085 961 863 765 676 595 505 434 367 311 261 220 188 165 165 149 
124 108 84 68 54 46 38 31 28 20 14 11 8 7 7 6 3 2 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 

Is that normal?  Unless I'm mistaken, this seems to imply that somehow
one more symbol got collected than the test creates.  But why just one?
Where does it come from?

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth



reply via email to

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