* scm_gc_malloc() function parameters
@ 2018-12-23 18:10 Stephen Scheck
2018-12-23 20:33 ` dsmich
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Scheck @ 2018-12-23 18:10 UTC (permalink / raw)
To: guile-user
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: scm_gc_malloc() function parameters
2018-12-23 18:10 scm_gc_malloc() function parameters Stephen Scheck
@ 2018-12-23 20:33 ` dsmich
0 siblings, 0 replies; 2+ messages in thread
From: dsmich @ 2018-12-23 20:33 UTC (permalink / raw)
To: guile-user, Stephen Scheck
---- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-23 20:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-23 18:10 scm_gc_malloc() function parameters Stephen Scheck
2018-12-23 20:33 ` dsmich
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).