Guile Mailing List Archive

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

Re: The taming of the before-gc-hook (was Re: Upcoming 1.3.2 release) (Harvey J. Stein) writes:

> Why is a C function on scm_before_gc_hook any safer than a Scheme
> function? The C function can just as easily call guile functions
> which require space to be grabbed.

Yes, but the c function isn't going to use any allocation unless you
tell it to (assuming that the evaluator won't do any consing, for the
(whatever)subr0(whatever) types ); you can't make the same guarantee
about a scheme function.


Guile Home | Main Index | Thread Index