[Top][All Lists]

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

Re: scm_gc_malloc() function parameters

From: dsmich
Subject: Re: scm_gc_malloc() function parameters
Date: Sun, 23 Dec 2018 15:33:06 -0500

---- Stephen Scheck <address@hidden> wrote: 
> Per -
> 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".


reply via email to

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