Subject: Re: bug#39361: continuation and gc performance

From: Ludovic Courtès <[email-masked]>
Date: Sun, 22 Mar 2020 21:51:31 +0100

Hi,

Stefan Israelsson Tampe <[email-masked]> skribis:

> That function marks the working stack no, what about stack segments in
> continuations will they be marked correctly as well?

Oh you’re right, from a quick look at continuations.c, a continuation’s
stack appears to be conservatively scanned (allocated with
‘scm_gc_malloc’).

My intuition is that it’s “good enough” in most cases, but could affect
GC performance a tiny bit in continuation-heavy code, such as Fibers.

Ludo’.