[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A question about struct coding_system
From: |
Stefan Monnier |
Subject: |
Re: A question about struct coding_system |
Date: |
Mon, 21 Nov 2011 12:47:04 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) |
> 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