---- Stephen Scheck <singularsyn...@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