On 13 Nov 2005, at 06:39, YAMAMOTO Mitsuharu wrote:
So, if there's a non-pure object that is only pointed to by pure
objects, which may happen if the assumption for the pure storage is
violated, then the object is reachable but get collected.
OK, that makes sense.
Do you know if this is documented somewhere?
I've read the info nodes about pure storage etc., and it doesn't say
anything about what to look for in code, or if there is a way to test
for the effect while loading. Maybe on a port that implements memory
protection?
I mostly just preload code, but define a setup function in each
package that is run at runtime. But from what you are saying, I am
getting that vectors are allocated when the file is loaded, and not
copied when a function is called. But if the code used (vector 0 0 0
0 0) instead of [0 0 0 0 0], the vector would be allocated at runtime
and we don't run into such trouble. Does this apply only to vectors?
(Since vectors seem immutable to me, this all would make sense...)
Any pointers to documentation would be greatly appreciated - I'm
happy to read whatever there is.
Thanks
- David
_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug