unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Should catchlist elements be marked during GC?
Date: Thu, 13 Jul 2006 11:24:15 -0400	[thread overview]
Message-ID: <jwv8xmxczi3.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3u05llsu2.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Thu, 13 Jul 2006 12:09:09 +0200")

> During GC, we don't explicitly go through the catchlist, marking the
> TAG and VAL member of each element.

What makes you say so?
In Fgarbage_collect I see:

  for (catch = catchlist; catch; catch = catch->next)
    {
      mark_object (catch->tag);
      mark_object (catch->val);
    }

> I just wondered if it is safe to assume that the TAG and VAL members
> are always marked due to some other method?

Actually, it is safe to assume so if we use conservative stack marking
because the catchlist elements are all allocated on the stack, so we
currently mark them redundantly.

The same holds for the handlerlist, the byte stacks, and the backtrace list
(but not for the specpdl array which is not allocated on the stack).

I have a patch to remove this redundant scanning, but keep it for post-22.


        Stefan

  reply	other threads:[~2006-07-13 15:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13 10:09 Should catchlist elements be marked during GC? Kim F. Storm
2006-07-13 15:24 ` Stefan Monnier [this message]
2006-07-13 21:41   ` Kim F. Storm
2006-07-14  4:07 ` Richard Stallman

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/emacs/

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

  git send-email \
    --in-reply-to=jwv8xmxczi3.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).