From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Question about GC in C code.
Date: Tue, 12 Nov 2002 14:44:43 -0500 [thread overview]
Message-ID: <200211121944.gACJih708562@rum.cs.yale.edu> (raw)
In-Reply-To: 200211121246.gACCk0MU030988@stubby.bodenonline.com
> How about if alloc.c was modified so other code could register a function
> to be called when GC occurs? That function could then mark lisp
> objects as needed. That way we can keep alloc.c free from knowing all
> the details of data structures, and changes to those data structures
> can be localized in just one file. Something like this:
Usually what happens instead is that code tries to fit all the data it
needs to manipulate within a Lisp_Object data structure, so you don't
need any new mark routine, but you just need to register a few
more roots (if anything at all).
E.g. instead of using a C struct, you can use a Lisp vector.
Stefan
next prev parent reply other threads:[~2002-11-12 19:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-09 20:36 Question about GC in C code Jan D.
2002-11-11 10:20 ` Richard Stallman
2002-11-11 14:25 ` Jan D.
2002-11-12 12:49 ` Jan D.
2002-11-12 19:44 ` Stefan Monnier [this message]
2002-11-14 4:10 ` Richard Stallman
2002-11-14 6:18 ` Jan D.
2002-11-16 1:34 ` Richard Stallman
2002-11-16 12:37 ` Jan D.
2002-11-17 5:14 ` 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=200211121944.gACJih708562@rum.cs.yale.edu \
--to=monnier+gnu/emacs@rum.cs.yale.edu \
--cc=emacs-devel@gnu.org \
--cc=rms@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).