GNU bug report logs - #12892
‘gc-stats’ w/o ‘bytes-malloced’

Previous Next

Package: guile;

Reported by: Thien-Thi Nguyen <ttn <at> gnuvola.org>

Date: Thu, 15 Nov 2012 08:43:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Thien-Thi Nguyen <ttn <at> gnuvola.org>
Subject: bug#12892: closed (Re: bug#12892: ‘gc-stats’
 w/o ‘bytes-malloced’)
Date: Wed, 13 Mar 2013 11:11:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 12892 <at> debbugs.gnu.org.

-- 
12892: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12892
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Thien-Thi Nguyen <ttn <at> gnuvola.org>
Cc: 12892-close <at> debbugs.gnu.org
Subject: Re: bug#12892: ‘gc-stats’ w/o
	‘bytes-malloced’
Date: Wed, 13 Mar 2013 12:09:27 +0100
On Wed 06 Mar 2013 17:03, Andy Wingo <wingo <at> pobox.com> writes:

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

For this reason I'll close this bug, as it doesn't seem possible to
provide a good estimate on the current amount of bytes that are live but
untracked by GC.

Andy
-- 
http://wingolog.org/

[Message part 3 (message/rfc822, inline)]
From: Thien-Thi Nguyen <ttn <at> gnuvola.org>
To: bug-guile <at> gnu.org
Subject: ‘gc-stats’ w/o ‘bytes-malloced’
Date: Thu, 15 Nov 2012 09:42:28 +0100
[Message part 4 (text/plain, inline)]
In pre-2.x Guile, ‘gc-stats’ returns an alist w/ keys:

 gc-time-taken
 cells-allocated
 total-cells-allocated
 cell-heap-size
 bytes-malloced
 gc-malloc-threshold
 gc-times
 gc-mark-time-taken
 cells-marked
 cells-swept
 malloc-yield
 cell-yield
 protected-objects
 cell-heap-segments

In Guile 2.0.6, the keys are now:

 gc-time-taken
 heap-size
 heap-free-size
 heap-total-allocated
 heap-allocated-since-gc
 protected-objects gc-times

I think the NEWS should mention this change and the documentation should
summarize what the fields mean.  Practically speaking, i am interested
mostly in the 2.x equivalent for pre-2.x ‘bytes-malloced’, as its lack
causes Guile-SDL to fail "make check DEBUG=1":

[.ttn.make-check.log.gz (application/octet-stream, attachment)]
[Message part 6 (text/plain, inline)]
by tripping up proc:

 (define (malloced)
   ;; prudence or superstition?  you be the judge!
   (gc) (gc)
   (assq-ref (gc-stats) 'bytes-malloced))
 
in test/leak.scm.  A related issue is how the error is reported.  It
seems strange that the file is "unknown".

-- 
Thien-Thi Nguyen ..................................... GPG key: 4C807502
.                  NB: ttn at glug dot org is not me                   .
.                 (and has not been since 2007 or so)                  .
.                        ACCEPT NO SUBSTITUTES                         .
........... please send technical questions to mailing lists ...........
[Message part 7 (application/pgp-signature, inline)]

This bug report was last modified 12 years and 76 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.