unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
Cc: guile-user@gnu.org
Subject: Re: managing external memory
Date: Tue, 10 Aug 2004 10:37:26 +1000	[thread overview]
Message-ID: <878ycn25h5.fsf@zip.com.au> (raw)
In-Reply-To: <Pine.LNX.4.44.0408091817490.7755-100000@zzz.i16> (Tom Schouten's message of "Mon, 9 Aug 2004 19:34:23 +0200 (CEST)")

Tom Schouten <doelie@zzz.kotnet.org> writes:
>
> obviously i'm doing something terribly wrong, so i wondered if there is a
> way to tell the gc how much 'external memory' a smob refers to, without
> changing the way the memory allocation in libpdp works.

In 1.6, scm_done_malloc and scm_done_free can tell the gc how much is
in use.  Those funcs don't actually do any malloc or free, they just
let the gc keep score of how much is in use.  When it gets above a
threshold a gc is run to try to reduce.

But these funcs aren't actually documented, and in the cvs head I
think they're changing to scm_gc_register_collectable_memory and
scm_gc_unregister_collectable_memory.


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


  parent reply	other threads:[~2004-08-10  0:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-09 17:34 managing external memory Tom Schouten
2004-08-09 22:52 ` Rob Browning
2004-08-10  0:37 ` Kevin Ryde [this message]
2004-08-10 19:00   ` Tom Schouten

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878ycn25h5.fsf@zip.com.au \
    --to=user42@zip.com.au \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).