From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Antipov <antipov@mvista.com>
Cc: emacs-devel@gnu.org
Subject: Re: A question about struct coding_system
Date: Mon, 21 Nov 2011 12:47:04 -0500 [thread overview]
Message-ID: <jwvobw5wevy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4ECA78BD.4040904@yandex.ru> (Dmitry Antipov's message of "Mon, 21 Nov 2011 20:13:49 +0400")
> At a first glance, struct coding_system should be a vector-like
> object with src_object and dst_object at the beginning. But it
> isn't, and it looks like that src_object and dst_object are never
> marked directly. Thus, it should be guaranteed that, for any
> coding_system, objects referenced by src_object and dst_object
> are always reachable from another live objects. But I can't
> find any code that takes care about this, so I don't understand
> why and how it works at all :-(.
It may very well work just by accident (the "global" coding_system
objects have src/dst_object fields that contain globally live objects
such as nil, while the others point to objects that are also reachable
via some local variable).
Stefan
prev parent reply other threads:[~2011-11-21 17:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 16:13 A question about struct coding_system Dmitry Antipov
2011-11-21 16:55 ` Andreas Schwab
2011-11-21 20:22 ` Stefan Monnier
2011-11-21 20:32 ` Andreas Schwab
2011-11-21 17:47 ` 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
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=jwvobw5wevy.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=antipov@mvista.com \
--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).