Subject: bug#12892: ‘gc-stats’ w/o ‘bytes-malloced’

From: Andy Wingo <[email-masked]>
Date: Wed, 06 Mar 2013 17:03:50 +0100

On Wed 06 Mar 2013 08:41, Thien-Thi Nguyen <[email-masked]> writes:

> () Andy Wingo <[email-masked]>
> () Wed, 06 Mar 2013 08:00:08 +0100
>
>    On Wed 06 Mar 2013 06:51, Thien-Thi Nguyen <[email-masked]> writes:
>
>    >    What is the meaning of this field?
>    >
>    > It's a copy of the C global var ‘scm_mallocated’, which tracks
>    > "current allocation" (all malloced minus all freed).
>
>    There is no such C global var.
>
> http://git.savannah.gnu.org/cgit/guile.git/tree/libguile/gc.c?h=ttn-back-in-the-saddle#n210            
>
> You have forgotten perhaps that we are trying to figure out how to surf
> a change between 1.8 and 2.0, and that "this field" is a 1.8 field?

1.8 is the old stable series, so it's not a great referent in the
present tense.

Anyway, Guile 2 does not track the number of bytes freed -- only the
bytes that are mallocated.

Andy
-- 
http://wingolog.org/