From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alin Soare <as1789@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
Andreas Schwab <schwab@linux-m68k.org>,
emacs-devel@gnu.org
Subject: Re: please help about the implementation of GC.
Date: Sun, 30 Oct 2011 18:05:23 -0400 [thread overview]
Message-ID: <jwvfwiaw31a.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CA+Xtq3UNUQ+-KErX09oprg=h=9B+131-T0AVezEViuOZS1_ENg@mail.gmail.com> (Alin Soare's message of "Sun, 30 Oct 2011 20:27:33 +0200")
> For example, I cannot understand what kind of objects are kept in every
> node of the red-black tree (in books I never saw gc implemented with
> red-black trees). I know that the objects are kept in obarrays. What link
> is there between obarrays and red-black tree of gc ?
Start by ignoring the conservative stack scanning (which is the one
that uses the red-black tree). Also the fact that we use a red-black
tree is not important: it's just a map from addresses to information
about them (whether the address is allocated to Elisp data and if so to
which kind of data).
Stefan
prev parent reply other threads:[~2011-10-30 22:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-30 14:01 please help about the implementation of GC Alin Soare
2011-10-30 16:56 ` Andreas Schwab
2011-10-30 17:53 ` Eli Zaretskii
2011-10-30 18:27 ` Alin Soare
2011-10-30 18:43 ` Andreas Schwab
2011-10-30 22:05 ` Stefan Monnier [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfwiaw31a.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=as1789@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=schwab@linux-m68k.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.