guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Fixed `scm_i_take_stringbufn ()'


From: Ludovic Courtès
Subject: Re: [PATCH] Fixed `scm_i_take_stringbufn ()'
Date: Wed, 15 Feb 2006 09:01:30 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Kevin Ryde <address@hidden> writes:

> I made some memory leak checks for myself by demanding that
> "(assoc-ref (gc-stats) 'bytes-malloced)" was steady across some
> repetitions of a test.  That's actually a different number though (is
> it?), but it should in theory be possible to exercise some of the
> malloc/free counting or balancing (post 1.8 that is :-).

I'm not sure doing so would be that easy because `bytes-malloced'
follows a periodic distribution whose period is unknown (i.e., each call
to `scm_take_locale_stringn ()' makes it slightly increase, and each
mark/sweep sequence -- which is occurs roughly periodically -- changes
it back to a much lower value).

Thanks,
Ludovic.




reply via email to

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