From: <dsmich@roadrunner.com>
To: guile-user@gnu.org, Stephen Scheck <singularsyntax@gmail.com>
Subject: Re: scm_gc_malloc() function parameters
Date: Sun, 23 Dec 2018 15:33:06 -0500 [thread overview]
Message-ID: <20181223203306.2328B.127543.root@cdptpa-web08> (raw)
In-Reply-To: <CAKjnHz2kdnd7SVMo3MRaRGw57OFrNh+C9WSC07qUR+v184xw6w@mail.gmail.com>
---- Stephen Scheck <singularsyntax@gmail.com> wrote:
> Per https://www.gnu.org/software/guile/manual/guile.html#Memory-Blocks -
> the scm_gc_malloc() function takes a const char * for the second parameter:
>
> void * scm_gc_malloc (size_t size, const char *what)
>
> However, the docs do not explain what it is for, nor is gc.h of any help -
> "what" is it for?
It's a string that describes what the allocation is for. Probably for debugging info and gc stats and the like.
Some examples from the libguile sources include "jit state", "locale", "chained finalizer", "foreign",
"dynstack", "pool", "array-indices".
-Dale
prev parent reply other threads:[~2018-12-23 20:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-23 18:10 scm_gc_malloc() function parameters Stephen Scheck
2018-12-23 20:33 ` dsmich [this message]
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=20181223203306.2328B.127543.root@cdptpa-web08 \
--to=dsmich@roadrunner.com \
--cc=guile-user@gnu.org \
--cc=singularsyntax@gmail.com \
/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).