emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#12892: closed ( ‘gc-s tats’ w/o =?UTF-8?Q?=E2=80=9


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#12892: closed ( ‘gc-s tats’ w/o =?UTF-8?Q?=E2=80=98bytes-malloced =E2=80=99?=)
Date: Wed, 13 Mar 2013 11:11:01 +0000

Your message dated Wed, 13 Mar 2013 12:09:27 +0100
with message-id <address@hidden>
and subject line Re: bug#12892: ‘gc-stats’ w/o ‘bytes-malloced’
has caused the debbugs.gnu.org bug report #12892,
regarding ‘gc-stats’ w/o ‘bytes-malloced’
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
12892: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12892
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: ‘gc-stats’ w/o ‘bytes-mal loced’ Date: Thu, 15 Nov 2012 09:42:28 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
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":

Attachment: .ttn.make-check.log.gz
Description: Binary data

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 ...........

Attachment: pgpkhahR7RsmX.pgp
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#12892: ‘gc-stats’ w/o ‘bytes-malloced’ Date: Wed, 13 Mar 2013 12:09:27 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
On Wed 06 Mar 2013 17:03, Andy Wingo <address@hidden> 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/


--- End Message ---

reply via email to

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