unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: 39361@debbugs.gnu.org
Subject: bug#39361: continuation and gc performance
Date: Sun, 22 Mar 2020 21:51:31 +0100	[thread overview]
Message-ID: <87wo7ct8oc.fsf@gnu.org> (raw)
In-Reply-To: <CAGua6m2KPaZvTz3Gm7pX-4yMqYCNZJO6Mzjvk6+P66pd3W=dYw@mail.gmail.com> (Stefan Israelsson Tampe's message of "Sat, 21 Mar 2020 21:43:49 +0100")

Hi,

Stefan Israelsson Tampe <stefan.itampe@gmail.com> 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’.





      reply	other threads:[~2020-03-22 20:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAGua6m1DQ+=VoypegHmcAELrHVb-s=DymVv6nMJQoj7aN9=EuA@mail.gmail.com>
2020-01-30 21:10 ` bug#39361: continuation and gc performance Stefan Israelsson Tampe
2020-03-21 17:33   ` Ludovic Courtès
2020-03-21 20:43     ` Stefan Israelsson Tampe
2020-03-22 20:51       ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wo7ct8oc.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=39361@debbugs.gnu.org \
    --cc=stefan.itampe@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).